mirror of
https://github.com/spartan-ng/spartan.git
synced 2026-09-22 16:41:38 +08:00
7ada58e03d
selectActiveItem() guarded the commit with a truthiness check (if (value)), so an option whose value is falsy (false, 0, '') was dropped: pressing Enter just closed the panel without selecting. Check value !== null && value !== undefined instead, so a defined falsy value is committed while a missing active item still closes. Applies to both BrnSelect and BrnSelectMultiple. Co-authored-by: Benjamin <benjamin@amcbanking.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@spartan-ng/brain/select
Secondary entry point of @spartan-ng/brain. It can be used by importing from @spartan-ng/brain/select.