bootstrap-duallistbox icon indicating copy to clipboard operation
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.

Open germanflores97 opened this issue 3 years ago • 0 comments

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

germanflores97 avatar Jun 26 '21 19:06 germanflores97