Choices: Assigned options duplicate upon reload in FireFox

Created on 24 Jan 2020  路  2Comments  路  Source: Choices-js/Choices

Options assigned to a text input will duplicate when reloading the page in current rev FireFox

Steps to reproduce the behavior:

  1. Go to https://joshuajohnson.co.uk/Choices/ with FireFox
  2. Observe the single option in the field labeled "Email addresses only"
  3. Click reload button or Ctrl-r
  4. 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

bug

Most helpful comment

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.

All 2 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

notflip picture notflip  路  3Comments

ckotzbauer picture ckotzbauer  路  5Comments

michaelongithub picture michaelongithub  路  4Comments

tekord picture tekord  路  4Comments

rstacruz picture rstacruz  路  4Comments