mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-02 19:06:39 +03:00
Comment changes
This commit is contained in:
parent
fc9982da14
commit
515fb57aaa
@ -41,6 +41,7 @@ export default async ({ getState, item, setState, isImage = null }) => {
|
||||
}
|
||||
}
|
||||
|
||||
await setState({ text: newText, textUpdated: true });
|
||||
await setState({ newSelection });
|
||||
await setState({ text: newText, textUpdated: true }, async () => {
|
||||
await setState({ newSelection });
|
||||
});
|
||||
};
|
||||
|
@ -42,6 +42,7 @@ export default async ({ getState, item, setState }) => {
|
||||
);
|
||||
}
|
||||
|
||||
await setState({ text: newText, textUpdated: true });
|
||||
await setState({ newSelection: { start: newPosition, end: newPosition } });
|
||||
await setState({ text: newText, textUpdated: true }, async () => {
|
||||
await setState({ newSelection: { start: newPosition, end: newPosition } });
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user