bootstrap-combobox
bootstrap-combobox copied to clipboard
Condition not working on transferAttributes methods undefined condition on options.appendId
In the transferAttributes method this condition is not failing when it should:
if (this.options.appendId !== "undefined") { this.$element.attr('id', this.$source.attr('id') + this.options.appendId); }
The correct code is
if (this.options.appendId !== undefined) { this.$element.attr('id', this.$source.attr('id') + this.options.appendId); }
Also, shouldn't something always be appended, and this option just override it? Otherwise the original Select still exists on the page with the same ID.