mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: update the selection after render completed
This commit is contained in:
parent
eb7c65aa8b
commit
90fa1312f2
@ -60,10 +60,8 @@ class EditorState {
|
|||||||
for (final op in transaction.operations) {
|
for (final op in transaction.operations) {
|
||||||
_applyOperation(op);
|
_applyOperation(op);
|
||||||
}
|
}
|
||||||
// updateCursorSelection(transaction.afterSelection);
|
|
||||||
|
|
||||||
// FIXME: don't use delay
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
Future.delayed(const Duration(milliseconds: 16), () {
|
|
||||||
updateCursorSelection(transaction.afterSelection);
|
updateCursorSelection(transaction.afterSelection);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -153,8 +153,6 @@ class _PopupListWidgetState extends State<PopupListWidget> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
// TODO: Is there a better way to get focus?
|
|
||||||
|
|
||||||
return Focus(
|
return Focus(
|
||||||
focusNode: focusNode,
|
focusNode: focusNode,
|
||||||
onKey: _onKey,
|
onKey: _onKey,
|
||||||
|
Loading…
Reference in New Issue
Block a user