Skip to content

Commit

Permalink
Fix incorrect behaviour of context menu (singerdmx#1734)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorK0rshun committed Feb 11, 2024
1 parent 3d5fb03 commit 95a4442
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/src/widgets/raw_editor/raw_editor_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,11 @@ class QuillRawEditorState extends EditorState
// ClipboardStatusNotifier with a default value of unknown will cause the
// clipboard status to be checked w/o user interaction which fails. Default
// to pasteable for web.
_clipboardStatus = ClipboardStatusNotifier(
value: kIsWeb ? ClipboardStatus.pasteable : ClipboardStatus.unknown);
if (kIsWeb) {
_clipboardStatus = ClipboardStatusNotifier(
value: ClipboardStatus.pasteable,
);
}
}

if (widget.configurations.scrollable) {
Expand Down

0 comments on commit 95a4442

Please sign in to comment.