Skip to content

Combobox improvements - #35

Merged
ukutaht merged 19 commits into
mainfrom
combobox-improvements
Oct 6, 2026
Merged

ukutaht merged 19 commits into
mainfrom
combobox-improvements

Conversation

@ukutaht

@ukutaht ukutaht commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

I don't expect this to get a thorough review so it's a bit of an omnibus including some things I've noticed and also an attempt to unblock @zoldar

API changes

  • Ability to supply initial value for the field
  • Move name field from .combobox_input to .combobox
  • For async search, replace input phx-change with on_search. Backend event handler now receives %{"query" => query}. Also changes how loading state is communicated (.phx-hook-loading on root component instead of .phx-change-loading on input element).

See docstrings in https://github.com/plausible/prima/compare/combobox-improvements?expand=1#diff-b1c3a5096660fe1d0fe91281794b4e74e34f614fdb3dced0c6c98980d52f259d for details

Contains a bunch of bug fixes along with these changes.

@ukutaht
ukutaht merged commit f7db164 into main Oct 6, 2026
1 check passed
@ukutaht
ukutaht deleted the combobox-improvements branch October 6, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant