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}
tohandle_async/3
oncancel_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
-
e70ee8e
Release 0.20.4 -
345ffac
Consider all form inputs for feedback reset if any one is updated (#3072) -
7d19dea
Form serialization is hard, kinda (#3069) -
69cea0c
do not reorder stream items if they already exist (#3030) -
1a75fe6
fix skipped children on stream reset (#3070) -
3aab8ae
Revert #2097 (#3050) -
3565114
merge value attribute as long as the property matches (#3058) -
cfe233d
Bump -
666b4d1
Properly serialize fields with multiple values (#3067) -
e31f634
Do not prevent submitting form when phx-click is set (#3066) - Additional commits viewable in compare view