Skip to content

Commit

Permalink
fix: #7710, Dropdown: Accessbility - cannot tab out of editable dropd…
Browse files Browse the repository at this point in the history
…own with clear icon (#7714)

Co-authored-by: akshayantony55 <akshayantony55@gmail.com>
  • Loading branch information
akshayaqburst and akshayantony55 authored Feb 17, 2025
1 parent 8f4947e commit 3e1046b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ export const Dropdown = React.memo(
{
className: cx('clearIcon'),
onPointerUp: clear,
tabIndex: props.tabIndex || '0',
tabIndex: props.editable ? -1 : props.tabIndex || '0',
onKeyDown: onClearIconKeyDown,
'aria-label': localeOption('clear')
},
Expand Down

0 comments on commit 3e1046b

Please sign in to comment.