Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Refactored tabIndex logic
Browse files Browse the repository at this point in the history
  • Loading branch information
adavijit committed Apr 24, 2024
1 parent 94be426 commit 6c9337c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/terra-form-select/src/shared/_Tag.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const Tag = ({
onKeyDown={handleKeyPress}
className={cx('deselect')}
onClick={() => { if (!disabled) onDeselect(value); }}
tabIndex={!disabled && !ariaHidden ? 0 : -1}
tabIndex={!disabled ? 0 : -1}
role="button"
aria-label={intl.formatMessage({ id: 'Terra.form.select.deselect' }, { text: children })}
aria-hidden={ariaHidden}
Expand Down

0 comments on commit 6c9337c

Please sign in to comment.