|
if (this.options.enableHTML && $(labelContent).length > 0) { |
The label is passed to $(labelContent) --> when the labelContent has a / in it, jQuery complains about it
Uncaught Error: Syntax error, unrecognized expression: foo / bar
Is the wrapping in $() necessary? I'd probably just cast it to string or / and trim it
if (this.options.enableHTML && labelContent.toString().length > 0) {
PS: i'm still on the 1.x version, but the code stayed the same
bootstrap-multiselect/dist/js/bootstrap-multiselect.js
Line 951 in a335ff1
The label is passed to $(labelContent) --> when the labelContent has a / in it, jQuery complains about it
Is the wrapping in $() necessary? I'd probably just cast it to string or / and trim it
PS: i'm still on the 1.x version, but the code stayed the same