From f44f6e2c9fabf5fa6929adca45fbf052ffeceb84 Mon Sep 17 00:00:00 2001 From: David Sheldrick Date: Wed, 3 May 2023 16:57:59 +0100 Subject: [PATCH] [fix] typo in isFocusingInput (#1221) Fixes https://discord.com/channels/859816885297741824/1103050527731884082/1103052355110457354 --- packages/editor/src/lib/hooks/useDocumentEvents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/lib/hooks/useDocumentEvents.ts b/packages/editor/src/lib/hooks/useDocumentEvents.ts index 55af7f0a8..7d39181e9 100644 --- a/packages/editor/src/lib/hooks/useDocumentEvents.ts +++ b/packages/editor/src/lib/hooks/useDocumentEvents.ts @@ -260,7 +260,7 @@ function isFocusingInput() { if ( activeElement && - (activeElement.getAttribute('contenteditble') || + (activeElement.getAttribute('contenteditable') || INPUTS.indexOf(activeElement.tagName.toLowerCase()) > -1) ) { return true