Skip to content

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/2 now auto-attaches a :handle_event hook that intercepts the "switch_language" event pushed by <.multilang_tabs> — consumers no longer need their own handle_event("switch_language", …) clause (forgetting it used to crash the LiveView on the first tab click). Opt out with auto_switch_language: false to handle the event manually.
  • SearchPicker gains a search_on_focus attr (default false) that opens the dropdown on focus/click of an empty input — promotes the previously JS-only data-search-on-focus behavior to a documented, first-class attribute (the raw rest attr is still honored).
  • Event-based NavTabs buttons now pulse (animate-pulse) while phx-click-loading is 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/2 switch-language hook (and its auto_switch_language: false opt-out).

PhoenixKit 1.7.199. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.