mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-08 23:19:43 +03:00
Merge pull request #567 from esteemapp/bugfix/502
Removed save draft from reply
This commit is contained in:
commit
253becc38b
Binary file not shown.
@ -127,7 +127,7 @@ class EditorScreen extends Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_handleFormUpdate = (componentID, content) => {
|
_handleFormUpdate = (componentID, content) => {
|
||||||
const { handleFormChanged } = this.props;
|
const { handleFormChanged, isReply } = this.props;
|
||||||
const fields = { ...this.state.fields };
|
const fields = { ...this.state.fields };
|
||||||
|
|
||||||
if (componentID === 'body') {
|
if (componentID === 'body') {
|
||||||
@ -141,15 +141,15 @@ class EditorScreen extends Component {
|
|||||||
handleFormChanged();
|
handleFormChanged();
|
||||||
|
|
||||||
this._handleIsFormValid();
|
this._handleIsFormValid();
|
||||||
this._saveCurrentDraft();
|
if (isReply) this._saveCurrentDraft();
|
||||||
};
|
};
|
||||||
|
|
||||||
_handleOnTagAdded = (tags) => {
|
_handleOnTagAdded = (tags) => {
|
||||||
const _tags = tags.filter(tag => tag && tag !== ' ');
|
const _tags = tags.filter(tag => tag && tag !== ' ');
|
||||||
const fields = { ...this.state.fields };
|
const fields = { ...this.state.fields };
|
||||||
|
|
||||||
fields.tags = _tags;
|
fields.tags = _tags;
|
||||||
this.setState({ fields, isRemoveTag: false, });
|
this.setState({ fields, isRemoveTag: false });
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
Loading…
Reference in New Issue
Block a user