Skip to content

Commit 95a4442

Browse files
authored
Fix incorrect behaviour of context menu (singerdmx#1734)
1 parent 3d5fb03 commit 95a4442

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/src/widgets/raw_editor/raw_editor_state.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,11 @@ class QuillRawEditorState extends EditorState
528528
// ClipboardStatusNotifier with a default value of unknown will cause the
529529
// clipboard status to be checked w/o user interaction which fails. Default
530530
// to pasteable for web.
531-
_clipboardStatus = ClipboardStatusNotifier(
532-
value: kIsWeb ? ClipboardStatus.pasteable : ClipboardStatus.unknown);
531+
if (kIsWeb) {
532+
_clipboardStatus = ClipboardStatusNotifier(
533+
value: ClipboardStatus.pasteable,
534+
);
535+
}
533536
}
534537

535538
if (widget.configurations.scrollable) {

0 commit comments

Comments
 (0)