Closed jcass77 closed 5 years ago
Just realised that Bootstrap already adds the 'down arrow' to the button by default, so I removed the button text.
thank you, this could really help
currently I am getting bootstrap-combobox from cdnjs, so I must wait the merge to use the {bsVersion: '4'} option, right?
Works very well (see: https://codepen.io/anon/pen/PyGRvN). @danielfarrell Can we merge this with the master?
@hackerESQ Daniel's not really active at this point. I'll see if I can find some time to review this sometime in the next few days.
it seems that the data-toggle="dropdown" should be removed, I get a popper.js exception if the data-toggle is there, if it's removed everything works as it should
Additionally the X is not displayed if the combobox is filled.
Currently just appends a 'Show all' button to the right of the combobox (Boostrap seems to have dropped support for glyph icons.
The script still defaults to using Bootstrap version 3 as version 4 is still in beta, so the combobox needs to be initialised with
$('.combobox').combobox({bsVersion: '4'});
to make use of the new HTML markup.