How to select the same item several time in a Dropdown

Hi Dash community,

Please can you tell me how to select the same item several time in a dropdown ?

Thinks,

Hi @nathalieCEA and welcome to the community. :smiley:

Could you explain a little bit about your issue? :thinking:

Hi Eduardo,

Example, I have the following list: [‘New York City’, ‘Montreal’, ‘San Francisco’]
Using a dcc.dropdown I want to select [‘Montreal’, ‘Montreal’, ‘San Francisco’]

import dash_core_components as dcc

dcc.Dropdown(
options=[
{‘label’: ‘New York City’, ‘value’: ‘NYC’},
{‘label’: ‘Montreal’, ‘value’: ‘MTL’},
{‘label’: ‘San Francisco’, ‘value’: ‘SF’}
],
searchable=False
)
Best regards,

Dropdown selections are for a set, not for repeated values. Could you elaborate a bit on why you need the same value selected twice? There might be a different way to represent your UI.