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

Cannot read property 'display' of undefined #2086

Closed
ex1st opened this issue Aug 31, 2018 · 3 comments
Closed

Cannot read property 'display' of undefined #2086

ex1st opened this issue Aug 31, 2018 · 3 comments
Labels

Comments

@ex1st
Copy link
Contributor

ex1st commented Aug 31, 2018

Version of bootstrap "3.3.7"
Version of bootstrap-select "1.13.2"

In BS3 dropdown Constructor doesn't have Default property.
That code throws error in some cases:

display = that.options.display || $.fn.dropdown.Constructor.Default.display;
@ghost
Copy link

ghost commented Sep 1, 2018

display = that.options.display || $.fn.dropdown.Constructor.Default.display;
==============>
display = that.options.display;

@jfcherng
Copy link

jfcherng commented Sep 2, 2018

May be fixed by adding

$.fn.selectpicker.Constructor.DEFAULTS.display = 'static'; // fix v1.13.2

But this should be fixed internally somehow.

@caseyjhol
Copy link
Member

Released in v1.13.3!

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

3 participants