From a0e8ef390ca2852590cae76850a8d60c050b0954 Mon Sep 17 00:00:00 2001 From: EgorK0rshun Date: Fri, 9 Feb 2024 14:46:25 +0300 Subject: [PATCH] Remove set new value to ClipboardStatusNotifier --- lib/src/widgets/raw_editor/raw_editor_state.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/widgets/raw_editor/raw_editor_state.dart b/lib/src/widgets/raw_editor/raw_editor_state.dart index 03424ccd..82fc02b9 100644 --- a/lib/src/widgets/raw_editor/raw_editor_state.dart +++ b/lib/src/widgets/raw_editor/raw_editor_state.dart @@ -528,8 +528,9 @@ 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) {