You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Phoenix LiveView version (mix deps): 0.20.4 and 0.20.5
Operating system: MacOS 14.2.1
Browsers you attempted to reproduce this bug on (the more the merrier): Chrome 121.0.6167.85. Firefox
Does the problem persist after removing "assets/node_modules" and trying again? Yes/no: Yes
Actual behavior
I have a liveview with a form with a phx-change="validate" that just enables the submit button.
Inside the form I have a select that is not currently doing anything, it has two options.
When I select the second option, the validate event changes an assign that enables my submit button, but the select goes back to the default option after a subtle flicker.
If I don't change any assigns in the validate event, then everything works as expected.
Probably is similar to the issue report #3083 but this scenario seems a bit simpler.
The select isn't changed on re-render as only the assign that enables the button is changed.
This worked fine in 0.20.1, 0.20.2 and 0.20.3. It got broken in 0.20.4 and is still broken in 0.20.5 and master
The text was updated successfully, but these errors were encountered:
A workaround for this issue is adding the html attribute "selected" to the first option (or the one that should be selected by default)
This is probably why not more people are seeing this issue, because that is covered by the component <.input type="select"...
I still think it's a valid issue though
SteffenDE
added a commit
to SteffenDE/phoenix_live_view
that referenced
this issue
May 3, 2024
Environment
Actual behavior
I have a liveview with a form with a phx-change="validate" that just enables the submit button.
Inside the form I have a select that is not currently doing anything, it has two options.
When I select the second option, the validate event changes an assign that enables my submit button, but the select goes back to the default option after a subtle flicker.
If I don't change any assigns in the validate event, then everything works as expected.
Probably is similar to the issue report #3083 but this scenario seems a bit simpler.
Expected behavior
The select isn't changed on re-render as only the assign that enables the button is changed.
This worked fine in 0.20.1, 0.20.2 and 0.20.3. It got broken in 0.20.4 and is still broken in 0.20.5 and master
The text was updated successfully, but these errors were encountered: