Skip to content

Commit

Permalink
STCOM-766 Add textarea to focusable selector (#2221)
Browse files Browse the repository at this point in the history
  • Loading branch information
vashjs authored Feb 8, 2024
1 parent 7532ec4 commit 8ab2495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/getFocusableElements.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import first from 'lodash/first';
import last from 'lodash/last';

// eslint-disable-next-line max-len
export const FOCUSABLE_SELECTOR = 'a:not([disabled]), button:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([disabled]):not([tabindex="-1"]), [tabIndex="-1"]:not([disabled]):focus';
export const FOCUSABLE_SELECTOR = 'a:not([disabled]), button:not([disabled]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), [tabindex]:not([disabled]):not([tabindex="-1"]), [tabIndex="-1"]:not([disabled]):focus';

function getVisibleFocusableElements(container = document, includeContained, currentElement) {
if (container.querySelectorAll) {
Expand Down

0 comments on commit 8ab2495

Please sign in to comment.