Skip to content

Commit

Permalink
fix negative tabindex handling when determining focusability (#2919)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Bruns <[email protected]>
  • Loading branch information
AHBruns authored Dec 18, 2023
1 parent 6ba694f commit c0e09df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/phoenix_live_view/aria.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let ARIA = {
(el instanceof HTMLAreaElement && el.href !== undefined) ||
(!el.disabled && (this.anyOf(el, [HTMLInputElement, HTMLSelectElement, HTMLTextAreaElement, HTMLButtonElement]))) ||
(el instanceof HTMLIFrameElement) ||
(el.tabIndex > 0 || (!interactiveOnly && el.tabIndex === 0 && el.getAttribute("tabindex") !== null && el.getAttribute("aria-hidden") !== "true"))
(el.tabIndex > 0 || (!interactiveOnly && el.getAttribute("tabindex") !== null && el.getAttribute("aria-hidden") !== "true"))
)
},

Expand Down

0 comments on commit c0e09df

Please sign in to comment.