Skip to content

[BUG] dcc.Dropdown value does not update when an option is removed (regression from #1868) #2733

@Thuener

Description

@Thuener

Describe your context
Please provide us your environment, so we can easily reproduce the issue.

  • replace the result of pip list | grep dash below
dash                 2.13.0

Describe the bug
Regression #1868
When the options of a dcc.Dropdown are updated to remove a currently selected option, the UI updates to remove that value, but the value parameter does not update.

Expected behavior

Removing an option from options should also remove that option from value, that way it will be sync with the UI.

Screenshots

Using the same code as #1868 but with version 2.13.0 we have
msedge_oxESf4Irhm

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething brokenregressionthis used to worksev-2serious problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions