From 4e4217531f79359ad2e756a4a1ac09218f9b2a86 Mon Sep 17 00:00:00 2001 From: Steven Dennett Date: Mon, 7 Mar 2022 12:16:46 -0500 Subject: [PATCH 1/2] Fixing invalid DOM selector --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index fd5e875..f6d03f3 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -16,7 +16,7 @@ const FOCUSABLE_ELEMENTS_SELECTORS = [ // Links must have `href` attribute to be focusable. `a[href]:not(.${BOUNDER_LINK_CLASS_NAME}):not([disabled])`, // All items with `tabIndex` are focusable but must be >=0 - "[tabindex]:not([tabindex=-1]):not([disabled])", + "[tabindex]:not([tabindex="-1"]):not([disabled])", "[contenteditable]", // Form elements: "button:not([disabled]), input:not([disabled])", From b519ed66fadc7ae278bb5de4976dbddcc4737ff9 Mon Sep 17 00:00:00 2001 From: Steven Dennett Date: Mon, 7 Mar 2022 12:21:58 -0500 Subject: [PATCH 2/2] Update index.tsx --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index f6d03f3..3e0dccd 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -16,7 +16,7 @@ const FOCUSABLE_ELEMENTS_SELECTORS = [ // Links must have `href` attribute to be focusable. `a[href]:not(.${BOUNDER_LINK_CLASS_NAME}):not([disabled])`, // All items with `tabIndex` are focusable but must be >=0 - "[tabindex]:not([tabindex="-1"]):not([disabled])", + "[tabindex]:not([tabindex='-1']):not([disabled])", "[contenteditable]", // Form elements: "button:not([disabled]), input:not([disabled])",