Skip to content

Commit

Permalink
fix: checking is mounted before updating the value of PropertyValueNo…
Browse files Browse the repository at this point in the history
…tifier(#977) (#997)
  • Loading branch information
asjqkkkk authored Dec 24, 2024
1 parent 95df61c commit 6c54748
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ class _MobileSelectionServiceWidgetState
final selection = editorState.selection;

WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
selectionNotifierAfterLayout.value = selection;
if (mounted) selectionNotifierAfterLayout.value = selection;
});

if (currentSelection.value != selection) {
Expand Down

0 comments on commit 6c54748

Please sign in to comment.