<.input type="checkbox" />
is added to a form with aphx-change
for changeset- On page load the
phx-no-feedback
class is applied (as it should) - When the checkbox is checked, the
phx-no-feedback
class is removed (as it should) - Upon interacting with any another element in the form the
phx-no-feedback
class is reapplied for the checkbox (this is the problematic behavior)
- Clone
gh repo clone benregn/repro_liveview_checkbox
orhttps://github.com/benregn/repro_liveview_checkbox.git
mix phx.server
- Go to http://localhost:4004/users/new
- Inspect the checkbox element (it has the
phx-no-feedback
class) - Check the "Accept T&C" checkbox (
phx-no-feedback
class is removed) - Type into one of the text inputs (the
phx-no-feedback
class is added back to the checkbox element)