main ← fix-pressing-enter-within-select-kit-within-a-modal-inception-style
opened 03:19PM - 10 Dec 25 UTC
When selecting an item in a select-kit dropdown (e.g., the assignee chooser in t…he assign modal), pressing Enter would close the modal without completing the selection.
This was caused by commit 1d2ae5159b which added `{ capture: true }` to the modal's keydown listener to prevent keypresses from leaking outside modals. However, this caused the modal to intercept Enter before the select-kit could process it, triggering the primary button click prematurely.
Add a check for `.select-kit` elements in `shouldTriggerClickOnEnter()` so the modal defers to select-kit's own Enter key handling.
Ref - meta/t/390910