Choices
Choices copied to clipboard
Assigned options duplicate upon reload in FireFox
Options assigned to a text input will duplicate when reloading the page in current rev FireFox
Steps to reproduce the behavior:
- Go to https://joshuajohnson.co.uk/Choices/ with FireFox
- Observe the single option in the field labeled "Email addresses only"
- Click reload button or Ctrl-r
- There are now 2 options in that field with the same value. Subsequent reloads continue to add more duplicates.
*** Note that Ctrl-Shift-r (hard reload) does not exhibit this behavior
Expected behavior Assigned options remain the same after reload
Tested on Linux with FireFox 72.0.1 and OSX with FireFox 72.0.2
Bug does not happen on Chrome (both Linux and OSX) nor Safari
Maybe it's related to firefox's autocomplete functionality to preserve the values when reloading. I didn't tested it with Choices.js but I think autocomplete="off"
on the input might help.
The issue exists in Firefox on windows 10 too. But setting autocomplete="off" solves the problem.
Thanks @mynameisbogdan