phoenixframework / phoenix

Peace of mind from prototype to production
https://www.phoenixframework.org
MIT License
21.45k stars 2.88k forks source link

Reset password duplicates fields on autofill. #5947

Closed cgarvis closed 1 month ago

cgarvis commented 1 month ago

Environment

Actual behavior

I used phx.gen.auth to create auth pages. I have not touched them. When I try to reset the password, the browser's autofill causes the form to get out of sync and renders extra fields.

Screenshot 2024-10-08 at 2 57 27 PM

Expected behavior

Auto fill new passwords without getting the form out of sync.

cgarvis commented 1 month ago

Seems if I remove <.flash_group flash={@flash} /> from the layout, it works fine.

chrismccord commented 1 month ago

This was already fixed on LV main, and we'll have a new rc out soon. Thanks! https://github.com/phoenixframework/phoenix_live_view/issues/3471