customd / jquery-number

Easily format numbers for display use. Replace numbers inline in a document, or return a formatted number for other uses.
https://www.customd.com/articles/14/jquery-number-format-redux
MIT License
442 stars 403 forks source link

Issues with back/forward browser buttons #148

Open marcomarsala opened 4 years ago

marcomarsala commented 4 years ago

I discovered issues with back/forward browser button when used together with https://github.com/flatpickr/flatpickr. The first text field when I use $.number will be replaced with the date of the first field when I use flatpickr. This happens only when pressing back/forward browser button. Normal refresh is working fine. Otherwise, the page is working as expected

Screencast: https://share.getcloudapp.com/ApuN4oep

marcomarsala commented 4 years ago

It happens only with latest Chrome

marcomarsala commented 4 years ago

I solved the issue adding autocomplete='off' to inputs fields where $.number is used.