hperrin / svelte-material-ui

Svelte Material UI Components
https://sveltematerialui.com/
Apache License 2.0
3.27k stars 287 forks source link

chrome auto fill fix #640

Open SanjayDookhoo opened 6 months ago

SanjayDookhoo commented 6 months ago

what was fixed: Fixed the issue where because of how google chrome initially autofills fields where the browser saved data, for example "email" and "password"

Problem: initially the onchange event is not triggered if the user loads the page from the URL, or refreshes the page. this problem does not happen if they have being actively using the website, and navigated to page with the form that holds autofilled data

example image of problem on first load: https://drive.google.com/file/d/1efej3r7PnD17tJugxMHI4OqivTKGOmZY/view?usp=sharing

example image after solution from this PR on first load: https://drive.google.com/file/d/1GG79hDE77ebtXdxRqPPbmAz0CMGg0E5T/view?usp=sharing

already recorded issue that could not have been resolved before, but can be resolved now, if only slightly: https://github.com/hperrin/svelte-material-ui/issues/210