Catalogue 0.39.0: Dropdowns that are never cut off
Catalogue 0.39.0 fixes dropdowns that could be clipped inside the item selector and other scrolling areas, and makes the item picker safer to embed in a host’s own forms.
Dropdowns above everything
The Columns list and the item picker’s dropdown now open in the browser’s top layer, above everything on the page. A scrolling or clipping container, such as the item selector window, can no longer cut them off. Each one is anchored to its button or search field and opens above it when there is no room below. Both are at most half the screen tall, so one side always fits, and each reopens in the right place when the page scrolls it off screen.
The Columns button is now a real button with a label for assistive technology. Its list closes on an outside click or Escape instead of when it loses focus, so you can switch several columns on or off before it closes.
An item picker that works in any form
The item picker now runs its search itself instead of through a form around it. It no longer fires the host form’s own change events, so it works the same inside or outside a form. Tabbing away closes its list, and a search result that arrives after you left the field is dropped instead of reopening the list over what you are doing. A page that embeds the picker no longer needs any overflow rule on its container.
Narrow screens
The item selector’s toolbar now wraps, and its search box keeps a minimum width. With the optional root switcher on, a narrow screen no longer pushes Columns and View past the edge of the window.
Upgrading
No migration and no change in requirements. Update the dependency. If your app wrapped the item picker in an overflow rule to keep its list visible, you can remove it.
Full release notes: Catalogue 0.39.0
0.39.0 · 18 September 2026
Reviews: dev_docs/pull_requests/2026/127-popover-dropdowns/.
Changed
- The Columns list and the item picker’s dropdown are top-layer popovers
(#127), anchored to their trigger with the new
Browse.popover_anchor/1(anchor-nameon the button or input,position-anchor+position-try-fallbacks: flip-block+position-visibility: anchors-visibleon the list). They render above every scrolling or clipping ancestor, so nothing cuts them off inside the selector modal, and they open above their trigger when there is no room below. Both are capped at half the viewport, so one side always fits; each reopens itself when the page scrolls it off screen, because a browser picks a popover’s position option when it opens, not when its anchor moves. Hosts embedding<.item_picker>no longer need anyoverflowrule on its container. - The item picker searches without a form around it (#127). The input
carries no
phx-change/phx-debounceany more; its colocated hook debounces what is typed and pushesquery_changeitself, and stops the input’sinput/changefrom reaching a host form — so the picker works with or without one and never fires the host form’s ownphx-change. Tabbing away closes the list (there is no click forphx-click-away), and a search that lands after the user left the field is dropped instead of reopening the list over whatever they are doing now. Tests drive the search withrender_hook("query_change", …)rather thanrender_change. - The Columns button is a real
<button>with anaria-label, and the list closes on an outside click or Escape rather than on blur, so several columns can still be flipped before it closes. ItemSelectorModal‘s toolbar row wraps, and its search form keeps 12rem: with the opt-in root switcher on, a narrow screen no longer pushes Columns and View past the modal’s edge.
Fixed
mix precommitis clean again. The merge reindentedcategory_facts/2’s, do:continuation the way Elixir 1.18 formats it, which Elixir 1.19 undoes, soquality.ciaborted atformat --check-formattedand credo and dialyzer never ran. The clause is adoblock now, which both versions format the same way; AGENTS.md records the trap.
Catalogue 0.39.0. Install or update: {:phoenix_kit_catalogue, "~> 0.39"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.