You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where a user can decide to deselect an already selected option in order to leave the select element without a selected value, I've looked around and it appears this plugin doesn't supports something like that.
Currently, the way I achieve it is to always have the first value empty, so it serves as something like a placeholder. However, it'll be great if the plugin has such feature in-built. Almost like the select2 plugin.
So here, I have a list of options
And then, I select one
How do I go back or cancel the selection? My current implementation is to use an empty option. Like the first option in the screenshot below:
And when selected, it looks like a placeholder
However, this would be great to have:
The text was updated successfully, but these errors were encountered:
I think I should mention that I know there's a .selectpicker('refresh') method. However, this doesn't really work out of the box because one would still have to manually place the icon in the select button and then write an on-click function that deselects the selected option before calling this refresh method to reset the UI. It'll be best if the plugin provided this out-of-the-box.
Can't you use data-showtick=true? On my select it allows to select and unselect by clicking it again. You can see it live here https://demo.elabftw.net/experiments.php in the Tags field on top of screen, middle.
I have a use case where a user can decide to deselect an already selected option in order to leave the select element without a selected value, I've looked around and it appears this plugin doesn't supports something like that.
Currently, the way I achieve it is to always have the first value empty, so it serves as something like a placeholder. However, it'll be great if the plugin has such feature in-built. Almost like the select2 plugin.
So here, I have a list of options
And then, I select one
How do I go back or cancel the selection? My current implementation is to use an empty option. Like the first option in the screenshot below:
And when selected, it looks like a placeholder
However, this would be great to have:
The text was updated successfully, but these errors were encountered: