mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 12:21:31 +03:00
Merge pull request #1156 from esteemapp/bugifx/image-upload
Fixed image upload issue
This commit is contained in:
commit
325240f946
@ -63,9 +63,9 @@ export default class MarkdownEditorView extends Component {
|
||||
|
||||
componentDidUpdate(prevProps, prevState) {
|
||||
const { text } = this.state;
|
||||
const { isFormValid, handleIsFormValid } = this.props;
|
||||
const { handleIsFormValid } = this.props;
|
||||
|
||||
if (prevState.text !== text && !isFormValid) {
|
||||
if (prevState.text !== text) {
|
||||
const nextText = text.replace(prevState.text, '');
|
||||
|
||||
if (nextText && nextText.length > 0) {
|
||||
@ -81,14 +81,6 @@ export default class MarkdownEditorView extends Component {
|
||||
// Component functions
|
||||
_changeText = input => {
|
||||
const { onChange, handleOnTextChange, handleIsValid, componentID } = this.props;
|
||||
const { textUpdated } = this.state;
|
||||
|
||||
if (textUpdated) {
|
||||
this.setState({
|
||||
textUpdated: false,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
this.setState({ text: input });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user