Skip to content

Commit

Permalink
fixed: setState() called after dispose(): QuillToolbarClipboardButton…
Browse files Browse the repository at this point in the history
…State (link #1895) (#1926)
  • Loading branch information
windows7lake authored Jun 18, 2024
1 parent 5effc5c commit be4b21d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/widgets/toolbar/base_button/base_value_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ abstract class QuillToolbarBaseButtonState<
}

void didChangeEditingValue() {
if (!mounted) return;
setState(() => currentValue = currentStateValue);
}

Expand Down

0 comments on commit be4b21d

Please sign in to comment.