We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello! The method 'refresh' appends a new span.check-mark to every li.dropdown-menu > a when using the attribute multiple.
span.check-mark
li.dropdown-menu > a
multiple
Steps to reproduce:
select
.bootstrap-select li:first-child > a > .check-mark
Reduced test case: https://codepen.io/campanari/pen/OqvrRv?editors=1011
For now I modified the function Selectpicker.prototype.createLi as follows:
if ((that.options.showTick || that.multiple) && elementTemplates.a.getElementsByClassName('check-mark').length < 1) { checkMark = elementTemplates.span.cloneNode(false); checkMark.className = iconBase + ' ' + that.options.tickIcon + ' check-mark'; elementTemplates.a.appendChild(checkMark); }
Would this solve this issue without causing any other problems?
Thanks!
The text was updated successfully, but these errors were encountered:
Good catch. That fix won't cause any issues. I'll work on something more robust and make it available in the next release.
Sorry, something went wrong.
ensure checkMark is only appended once (#2232)
4d571c6
Released in v1.13.9!
No branches or pull requests
Hello! The method 'refresh' appends a new
span.check-mark
to everyli.dropdown-menu > a
when using the attributemultiple
.Steps to reproduce:
select
using themultiple
attribute;.bootstrap-select li:first-child > a > .check-mark
Reduced test case: https://codepen.io/campanari/pen/OqvrRv?editors=1011
For now I modified the function Selectpicker.prototype.createLi as follows:
Would this solve this issue without causing any other problems?
Thanks!
The text was updated successfully, but these errors were encountered: