Comment changes

This commit is contained in:
Mustafa Buyukcelebi 2019-06-11 11:08:34 +03:00
parent fc9982da14
commit 515fb57aaa
2 changed files with 6 additions and 4 deletions

View File

@ -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 });
});
};

View File

@ -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 } });
});
};