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

Fixes edge case where default values are not respected when initialising the plugin #1346

Merged
merged 2 commits into from
Mar 31, 2016

Conversation

mattbryson
Copy link
Contributor

Fixed issue when using a title and a default selected option set with JS rather than markup. The plugin did not detect the default selected value.

It was using attr but that only detects the initial default value set via markup attributes. If the current selected value had been changed by JS prior to initialising the plugin (bound to backbone model for example) then the value was not detected.

Needed to check for prop as well, as this checks the current value as well.

… JS rather than markup. The plugin did not detect the default selected value
@caseyjhol caseyjhol merged commit 33374ca into snapappointments:master Mar 31, 2016
caseyjhol added a commit that referenced this pull request Aug 4, 2016
avantika-gupta-jtg pushed a commit to JoshLabs/bootstrap-select that referenced this pull request May 14, 2020
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.

2 participants