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

Using "native: true" and calling refresh() destroys the original select #125

Closed
SeyelentEco opened this issue Feb 26, 2013 · 2 comments
Closed
Assignees
Labels

Comments

@SeyelentEco
Copy link

When using the option: {native: true} and then calling "refresh()" because the data has changed, the destroy function deletes the original select box by calling "self.dropdownContainer.remove()".

This can be fixed by adding the following lines in the _destroySelectBoxIt function before the "remove()" call.

if (self.options["native"]) {
    self.dropdownContainer.before(self.selectBox);
}

This code will place the select box back where it started and then the rest of the code will work as intended.

@ghost ghost assigned gfranko Feb 26, 2013
@gfranko
Copy link
Owner

gfranko commented Feb 26, 2013

@SeyelentEco Thanks for letting us know about this issue! I'll make sure this is fixed in the next release.

@gfranko
Copy link
Owner

gfranko commented Feb 28, 2013

@SeyelentEco This should now be fixed in the latest release!

@gfranko gfranko closed this as completed Feb 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants