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

Restore select to its original position when destroying #1250

Merged
merged 1 commit into from
Jan 12, 2016

Conversation

jkrehm
Copy link
Contributor

@jkrehm jkrehm commented Dec 31, 2015

In my opinion, when destroying the bootstrap-select element, it should restore the select to its original position. In 1.7.7 (where I first noticed the issue) it was only an issue with the mobile version, but since this.$element is now always appended to this.$newElement, it's an issue in general.

@jkrehm
Copy link
Contributor Author

jkrehm commented Jan 11, 2016

To be clear on the issue, currently when you fire the destroy function, it destroys not only the bootstrap-select stuff, but the original <select> element, too. I don't think that's the intention of destroy, so this fixes it.

@caseyjhol
Copy link
Member

Good catch. I'll test and merge this tomorrow.

caseyjhol added a commit that referenced this pull request Jan 12, 2016
Restore select to its original position when destroying
@caseyjhol caseyjhol merged commit e0c09f4 into snapappointments:master Jan 12, 2016
@jkrehm jkrehm deleted the restore-on-destroy branch January 12, 2016 21:42
@jkrehm
Copy link
Contributor Author

jkrehm commented Jan 12, 2016

Awesome, thanks for merging.

@masha256
Copy link

This fixed my issue too! Thanks!

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.

None yet

3 participants