Skip to content

[BUG] Changing dcc.Checklist.options triggers callbacks with inputs dcc.Checklist.value #2411

Closed
@mclarty3

Description

@mclarty3

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

dash                      2.8.1
dash-bootstrap-components 1.3.1
dash-core-components      2.0.0
dash-daq                  0.5.0
dash-html-components      2.0.0
dash-table                5.0.0

Note that this also occurs with Dash 2.8.0, but not 2.7.0.

  • if frontend related, tell us your Browser, Version and OS

    • OS: Ubuntu 22.04
    • Browser: Chrome
    • Version: 109.0.5414.119

Describe the bug

When outputting to the options property of a dcc.Checklist, it triggers callbacks with inputs dcc.Checklist.value.

Expected behavior

Callbacks with input dcc.Checklist.value should only be triggered if that checklist's value is explicitly changed (either through callback or user input), not if only the checklist options are changed.

Minimal reproducible example

I've tried to create a simple example app to show exactly what the issue is. I tried taking a screen recording though unfortunately Ubuntu is not helping out currently.

In essence, when running with Dash <= 2.7.0, only selecting/deselecting a city should increment the counter below the checklist. With Dash >= 2.8.0, however, the counter is also incremented when typing in the search bar above the checklist (not desired behaviour)

DashBugMRE.zip

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