Skip to content

[BUG] Version 3.0.0rc3 - Default Dropdown Value Bug #3211

@xiforivia

Description

@xiforivia

When selecting another option from the dropdown that is not the default option, it changes normally, but when returning to the default option, it does not switch back to it.
It is possible to see in the video that "Tratar + Ignorar" was the default option and after I change that, I can't switch back to it.

bug_dropdown.mp4

Code:

dbc.Label("Escolha o Tratamento de inviabilidades", className="d-flex justify-content-center", style={"color": "#002f4a", "font-weight": "bold"}),
dcc.Dropdown(
id='inviabilidade-estudo',
options=[
{"label": "Tratar inviabilidades", "value": 1},
{"label": "Ignorar inviabilidades", "value": 2},
{"label": "Tratar + Ignorar", "value": 3},
{"label": "Tratamento True", "value": 4}
],
value=3
)

Versions:
dash==3.0.0rc3
dash-bootstrap-components==2.0.0b2
dash-breakpoints==0.1.0
dash-core-components==2.0.0
dash-html-components==2.0.0
dash-table==5.0.0
dash-ag-grid==31.3.1rc1
dash_auth==2.3.0
dash-mantine-components==0.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions