From 9ba4e96ba8528efe6a54a97dd82d9de2815c5aad Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sun, 24 Nov 2024 09:52:26 -0300 Subject: [PATCH] Remove event origin verification on selection change event --- src/components/floating-toolbar/TextContextFloatingToolbar.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/floating-toolbar/TextContextFloatingToolbar.ts b/src/components/floating-toolbar/TextContextFloatingToolbar.ts index 022f356..363e187 100644 --- a/src/components/floating-toolbar/TextContextFloatingToolbar.ts +++ b/src/components/floating-toolbar/TextContextFloatingToolbar.ts @@ -162,10 +162,6 @@ export class TextContextFloatingToolbar extends FloatingToolbar { document.addEventListener(DefaultJSEvents.SelectionChange, (event) => { - if (!Utils.isEventFromContentWrapper(event)) { - return; - } - this.showHide(event, isSelecting); });