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
When you have a dropdown with multi=True, a user might want to select multiple items at the same time. However, dcc.Dropdown closes when you select one item, and to select another item you have to open it again.
It would be much more user-friendly if dcc.Dropdown can stay open when an item is selected, or at least have it as an option. With rshiny this is already possible, see the multi-select example here.
There seems to be a way to hack the javascript code to get it working, but a proper solution would be to have a boolean option in dcc.Dropdown, e.g. close_on_select, or multi_close_on_select.
The text was updated successfully, but these errors were encountered:
@WWakker No worries. It actually wasn't that bad implementing. The only thing that was slightly challenging were the integration tests, mainly making sure the menu stayed open.
I had forgotten that I had started thinking on this a couple weeks ago and this issue reminded me that I should figure out those tests.
gvwilson
changed the title
[Feature Request] Allow dcc.Dropdown with multi=True to stay open when item is selected
Allow dcc.Dropdown with multi=True to stay open when item is selected
Aug 13, 2024
When you have a dropdown with
multi=True
, a user might want to select multiple items at the same time. However,dcc.Dropdown
closes when you select one item, and to select another item you have to open it again.It would be much more user-friendly if
dcc.Dropdown
can stay open when an item is selected, or at least have it as an option. Withrshiny
this is already possible, see the multi-select example here.There seems to be a way to hack the javascript code to get it working, but a proper solution would be to have a boolean option in dcc.Dropdown, e.g.
close_on_select
, ormulti_close_on_select
.The text was updated successfully, but these errors were encountered: