intl-tel-input icon indicating copy to clipboard operation
intl-tel-input copied to clipboard

Prevent dropdown focus when the associated input is disabled

Open loicplaire opened this issue 3 years ago • 0 comments

Explanation

See the related issue for more info but in short, you shouldn't able to focus on the dropdown using the keyboard when the associated input is disabled.

Related issue: https://github.com/jackocnr/intl-tel-input/issues/1241

Changes

  • Set the tabindex to -1 and aria-disabled to true when the associated input has the disabled attribute.
  • Added tests.
  • Ran npm run build:js

loicplaire avatar Jun 21 '21 05:06 loicplaire