bootstrap-combobox icon indicating copy to clipboard operation
bootstrap-combobox copied to clipboard

Condition not working on transferAttributes methods undefined condition on options.appendId

Open bmmathe opened this issue 8 years ago • 1 comments

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); }

bmmathe avatar Jul 19 '16 15:07 bmmathe

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.

weisborg avatar Dec 09 '16 20:12 weisborg