PhoenixKit 1.7.199: Language tabs that no longer crash a form
PhoenixKit 1.7.199 is a small release for developers building pages with PhoenixKit’s components.
A multilingual form set up with mount_multilang/2 now handles the language tab switch itself. Before, a page that forgot its own handler for that event crashed on the first tab click. Pass auto_switch_language: false to keep handling it yourself.
SearchPicker gets a search_on_focus attribute that opens the list when an empty field is focused, and tabs that load content from the server pulse while they wait. No change on existing pages beyond that.
Full release notes: PhoenixKit 1.7.199
1.7.199 · 17 July 2026
Added
MultilangForm.mount_multilang/2now auto-attaches a:handle_eventhook that intercepts the"switch_language"event pushed by<.multilang_tabs>— consumers no longer need their ownhandle_event("switch_language", …)clause (forgetting it used to crash the LiveView on the first tab click). Opt out withauto_switch_language: falseto handle the event manually.SearchPickergains asearch_on_focusattr (defaultfalse) that opens the dropdown on focus/click of an empty input — promotes the previously JS-onlydata-search-on-focusbehavior to a documented, first-class attribute (the raw rest attr is still honored).- Event-based
NavTabsbuttons now pulse (animate-pulse) whilephx-click-loadingis applied, giving instant feedback for a tab switch whose content needs a server round-trip.
Fixed
- Closed a test-coverage gap on the new
mount_multilang/2switch-language hook (and itsauto_switch_language: falseopt-out).
PhoenixKit 1.7.199. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.