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

Clear all items and add new items #2740

Closed
cwolcott opened this issue May 10, 2022 · 3 comments
Closed

Clear all items and add new items #2740

cwolcott opened this issue May 10, 2022 · 3 comments
Labels

Comments

@cwolcott
Copy link

cwolcott commented May 10, 2022

  • In 1.14.0-beta2 I could clear the selectpicker and add new options, but in 1.14.0-beta3 the list does not clear.

Using bootstrap-select@1.14.0-beta3
Using jquery-3.6.0
Using bootstrap@5.1.3
Tested in Chrome

StackBlitz Example
Includes 1.14.0-beta3, to see it work change the source the 1.14.0-beta2

@cwolcott cwolcott added the bug label May 10, 2022
@yankarinRG
Copy link

Related: #2724

@NicolasCARPi
Copy link
Collaborator

Closing as duplicate then. Thanks @yankarinRG .

@jfsv
Copy link

jfsv commented Jul 5, 2023

$('#grafSeleccionado').selectpicker('destroy').empty().addClass('selectpicker').append(Departamentos).selectpicker('render');
esto me funciono con:
bootstrap-select@1.14.0-beta3
jquery-3.6.0
bootstrap@5.2

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

No branches or pull requests

4 participants