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) {
|
||||
_applyOperation(op);
|
||||
}
|
||||
// updateCursorSelection(transaction.afterSelection);
|
||||
|
||||
// FIXME: don't use delay
|
||||
Future.delayed(const Duration(milliseconds: 16), () {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
updateCursorSelection(transaction.afterSelection);
|
||||
});
|
||||
|
||||
|
@ -153,8 +153,6 @@ class _PopupListWidgetState extends State<PopupListWidget> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
// TODO: Is there a better way to get focus?
|
||||
|
||||
return Focus(
|
||||
focusNode: focusNode,
|
||||
onKey: _onKey,
|
||||
|
Loading…
Reference in New Issue
Block a user