LiveSelect - Dynamic selection input component for LiveView

Released version 1.1.0

Changes:

  • New phx-focus and phx-blur options. You can use these options to specify events to be sent to the parent LiveView/LiveComponent when the text input receives or loses focus. See the cheatsheet for a couple usage examples.
  • The live_select_change event is now sent directly from the JS hook instead of playing ping-pong between client and server. This saves a round-trip and should reduce response times.
  • The component now expects a single field assign of type Phoenix.HTML.FormField instead of separate form and field assigns (which is still supported but soft-deprecated with a warning)

Thanks to all who provided feedback!

2 Likes