From adb6256e1ece99ca8a1bbaefde1d37849f9302eb Mon Sep 17 00:00:00 2001 From: umaranis Date: Fri, 9 Feb 2024 07:30:16 +1100 Subject: [PATCH] bug: add selection adjustments for node removal --- .../src/core/plugins/HorizontalRuleComponent.svelte | 1 - .../svelte-lexical/src/core/plugins/Image/ImageComponent.svelte | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/svelte-lexical/src/core/plugins/HorizontalRuleComponent.svelte b/packages/svelte-lexical/src/core/plugins/HorizontalRuleComponent.svelte index 55eb883..333b88d 100644 --- a/packages/svelte-lexical/src/core/plugins/HorizontalRuleComponent.svelte +++ b/packages/svelte-lexical/src/core/plugins/HorizontalRuleComponent.svelte @@ -33,7 +33,6 @@ if (isHorizontalRuleNode(node)) { node.remove(); } - $isSelected = false; } return false; } diff --git a/packages/svelte-lexical/src/core/plugins/Image/ImageComponent.svelte b/packages/svelte-lexical/src/core/plugins/Image/ImageComponent.svelte index d9dd283..36a906a 100644 --- a/packages/svelte-lexical/src/core/plugins/Image/ImageComponent.svelte +++ b/packages/svelte-lexical/src/core/plugins/Image/ImageComponent.svelte @@ -83,7 +83,6 @@ if (isImageNode(node)) { node.remove(); } - $isSelected = false; } return false; };