Skip to content

Fix: show an empty-string option as chosen in pickers - #506

Merged
SandObserver merged 1 commit into
mainfrom
fix/listbox-empty-value
Oct 19, 2026
Merged

SandObserver merged 1 commit into
mainfrom
fix/listbox-empty-value

Conversation

@SandObserver

Copy link
Copy Markdown
Owner

Summary

  • Add singleChoice to admin-logic.js: an empty string counts as a choice when a non-group option carries it.
  • Use it in listbox.js for the selected set, button label and aria-selected.

Testing
All green. Added tests in admin-logic and listbox.

Changelog

Fixed

  • The Referrer policy picker shows and selects Default.

Checklist

  • Stays within the project constraints: one container, no runtime dependencies, no build step (see CONTRIBUTING.md).
  • Tests added or updated for new logic, and the full suite, lint, and typechecks pass.
  • Docs updated if behavior or configuration changed.

A single-choice picker treats an empty value as a choice when an option carries it, so the Referrer policy picker shows and selects Default.
@SandObserver SandObserver added the ui/ux UI, UX, and accessibility only fix label Oct 19, 2026
@SandObserver
SandObserver merged commit f9a5351 into main Oct 19, 2026
6 checks passed
@SandObserver
SandObserver deleted the fix/listbox-empty-value branch October 19, 2026 02:44
stackyard-release Bot pushed a commit that referenced this pull request Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui/ux UI, UX, and accessibility only fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant