Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug fixed] Not being able to select an option when using bootstrapDualListbox ("refresh") when emptying and filling the select with new data. #191

Open
germanflores97 opened this issue Jun 26, 2021 · 0 comments

Comments

@germanflores97
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant