Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiselect - automatic selection breaks on page refresh #398

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

bunny-x-bunny
Copy link

@bunny-x-bunny bunny-x-bunny commented Nov 6, 2024

Description:
Firefox is trying to be helpful with autocomplete when refreshing page, causing the hidden input to be non-empty before script initialization. This confuses select.js, particularly around those lines:

if (input.value.includes(this.selectedValue)) {
this.unsetValue(item);

Fixes #393 : disable autocomplete explicitly

@bunny-x-bunny bunny-x-bunny changed the title Fixes #393 Multiselect - automatic selection breaks on page refresh Nov 6, 2024
@mkocansey mkocansey merged commit bff068e into mkocansey:main Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiselect - automatic selection breaks on page refresh
2 participants