Skip to content

Bump phoenix_live_view from 0.20.3 to 0.20.4

Bumps phoenix_live_view from 0.20.3 to 0.20.4.

Changelog

Sourced from phoenix_live_view's changelog.

0.20.4 (2024-02-01)

Bug fixes

  • Fix phx-remove on sticky LiveViews
  • Fix phx-disabled-with not restoring button disabled state on empty diff acknowledgement
  • Fix stream reset not ordering items correctly
  • Send {:shutdown, :cancel} to handle_async/3 on cancel_async
  • Prevent events from child LiveViews from bubbling up to root LiveView when child is not mounted yet
  • Fix phx-mounted being called twice for stream items
  • Never move existing stream items if they already exist (use stream_delete and then stream_insert instead)
  • Fix live component rendering breaking when the server adds a component back that was pruned by the client (#3026)
  • Allow redirect from upload progress callback
  • Fix nested components getting skipped when resetting a stream
  • Fix nested components getting skipped in LiveComponents
  • Fix stream limits not being applied correctly when bulk inserting
  • Fix click-away being called incorrectly on form submits
  • Fix inconsistencies between LiveViewTest and browser stream implementations
  • Fix phx-feedback-for being reapplied when there are multiple inputs with the same name

Enhancements

  • Add JS.toggle_class
  • Add JS.toggle_attribute
  • Force update select options when the options changed from the server while a select has focus
  • Introduce phx-feedback-group for handling feedback for composite input groups
  • Add validate_attrs to slots
  • Support phx-viewport bindings in scrollable containers
  • Perform client redirect when trying to live nav from dead client to avoid extra round trip
  • Allow regular buttons with name/value attributes to send form events and adjusted dynamic form documentation to reflect this
  • Allow form attribute on live_file_input
Commits

Merge request reports