bootstrap-duallistbox
bootstrap-duallistbox copied to clipboard
[Bug fixed] Not being able to select an option when using bootstrapDualListbox ("refresh") when emptying and filling the select with new data.
The error consists in that when emptying the select and filling it with more data than the ** elementCount ** variable had, which contains the "number of elements that the select should have" but when filling it with new data that exceeds that index, if trying to select an option nothing happens. To fix the error refresh: function(mustClearSelections) { this.elementCount=0; //Solution updateSelectionStates(this); clearSelections(this); refreshSelects(this); },