element [Feature Request] Do not prevent propagation of escape keydown event when select menu is closed

mepcadol  于 2023-02-04  发布在  其他
关注(0)|答案(1)|浏览(157)

Existing Component

Yes

Component Name

Select

Description

Please update the select component's keydown handling logic so it doesn't stop propagation of the event if escape is pressed while the select menu is already hidden.

Our use case: In an effort to improve keyboard navigation of an internal tool we use, we'd like to enable the following flow:

  1. A user opens a dialog
  2. Tabs to the desired select element
  3. Changes the value and hides the select's menu
  4. Press escape to close the dialog

Step 4 is not currently possible due to the select element stopping propagation on all keydown events for escape, regardless of menu state.

cgyqldqp

cgyqldqp1#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题