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

IE and Safari with 'back' button -- wrong items selected #95

Open
lwoodring opened this issue Oct 6, 2014 · 1 comment
Open

IE and Safari with 'back' button -- wrong items selected #95

lwoodring opened this issue Oct 6, 2014 · 1 comment

Comments

@lwoodring
Copy link

When a page is displayed that contains a multiselect widget, it displays correctly on 1st load. However, if the user then goes to another page, then back to the original page via the browser 'back' button -- the wrong items are then selected in IE 11 and Safari. (When using Firefox & Chrome, the correct items are selected.) Within IE 11 and Safari, it seems to select the 1st 'X' items in the list.

I found a couple references to the generic problem with how IE stores the 'index' into the list of items, as opposed to the 'value'..?..:
http://forum.jquery.com/topic/jquery-select-box-selectedindex-problems-in-internet-explorer-ie-on-refresh-and-back-buttons
https://bugzilla.mozilla.org/show_bug.cgi?id=282368

Is this a known issue? Is there a workaround?

@lwoodring
Copy link
Author

Note that if I disable the call to $('#mySelect').multiselect(); -- and just let it render as a plain select input, the browsers do not have the issue.

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

No branches or pull requests

1 participant