discourse/plugins/discourse-assign/spec
Régis Hanol f363ae5a15
FIX: Allow Enter key to work inside select-kit within modals (#36596)
When selecting an item in a select-kit dropdown (e.g., the assignee
chooser in the 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
2025-12-11 10:41:32 +01:00
..
components DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
fabricators
integration DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
jobs DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
lib FIX: Scope assigned group PMs to participant visibility (#36073) 2025-11-18 11:48:28 +08:00
models DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
requests DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
serializers DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
support
system FIX: Allow Enter key to work inside select-kit within modals (#36596) 2025-12-11 10:41:32 +01:00
plugin_spec.rb FIX: assigned filter group visibility (#35726) 2025-11-11 11:35:44 -03:00