From 847b78347f3403e2a86ac5a2c89435320a171cff Mon Sep 17 00:00:00 2001 From: umaranis Date: Wed, 13 Nov 2024 18:14:14 +1100 Subject: [PATCH] bug: readonly editor enabled toolbar buttons --- .../components/generic/colorpicker/ColorPickerDropDown.svelte | 2 +- .../svelte-lexical/src/lib/components/toolbar/BoldButton.svelte | 2 +- .../src/lib/components/toolbar/FontSizeEntry.svelte | 2 +- .../src/lib/components/toolbar/ItalicButton.svelte | 2 +- .../src/lib/components/toolbar/StrikethroughButton.svelte | 2 +- .../src/lib/components/toolbar/UnderlineButton.svelte | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/svelte-lexical/src/lib/components/generic/colorpicker/ColorPickerDropDown.svelte b/packages/svelte-lexical/src/lib/components/generic/colorpicker/ColorPickerDropDown.svelte index d841e5d..c5b09ed 100644 --- a/packages/svelte-lexical/src/lib/components/generic/colorpicker/ColorPickerDropDown.svelte +++ b/packages/svelte-lexical/src/lib/components/generic/colorpicker/ColorPickerDropDown.svelte @@ -21,7 +21,7 @@ {buttonIconClassName} {buttonLabel} {title} - disabled={!isEditable} + disabled={!$isEditable} {stopCloseOnClickSelf}> diff --git a/packages/svelte-lexical/src/lib/components/toolbar/BoldButton.svelte b/packages/svelte-lexical/src/lib/components/toolbar/BoldButton.svelte index 2b378a3..dba7399 100644 --- a/packages/svelte-lexical/src/lib/components/toolbar/BoldButton.svelte +++ b/packages/svelte-lexical/src/lib/components/toolbar/BoldButton.svelte @@ -12,7 +12,7 @@