dxprog / anime-bracket

The code that runs animebracket.com
http://animebracket.com
84 stars 20 forks source link

Don't retain votes when refreshing page in Firefox #33

Closed Ghostkeeper closed 5 years ago

Ghostkeeper commented 5 years ago

The votes cannot be retained when refreshing, because when loading the page the candidates are placed randomly left or right to remove bias. Reloading the page randomly swaps some candidates but doesn't swap the currently selected candidate. However Firefox autocompletes the form inputs with previously entered data upon refreshing. This change brings the behaviour down to how it works in Chrome: No autocompletion based on votes before the refresh.

For documentation, see:

Fixes #32.

dxprog commented 5 years ago

Yeah, I figured it was gonna be something like this. Thanks for the PR!