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

selected options are only retained on the first multiselect #38

Closed
ehynds opened this issue Nov 16, 2010 · 2 comments
Closed

selected options are only retained on the first multiselect #38

ehynds opened this issue Nov 16, 2010 · 2 comments

Comments

@ehynds
Copy link
Owner

ehynds commented Nov 16, 2010

all subsequent multiselects drop their selected values on page refresh in at least FF.

@ehynds
Copy link
Owner Author

ehynds commented Nov 16, 2010

i've narrowed this one down to how the multiselect is being injected into the DOM. If it's appended to the body the original selects maintain their state, but if you inject the new html after the original select, they lose their state. I'm guessing the changes in the DOM force the select to forget what's selected... or something.

The placement has to be next to the original select so it's visual position can be maintained. i'm still pondering how to fix this, if it can even be done.

@chrisPirraglia
Copy link

I can confirm this behavior, any suggestions for a work-around?

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

2 participants