Skip to content

[BUG] Assigning None to exact or shape array properties causes exception #3010

@CNFeffery

Description

@CNFeffery

For array-type properties where individual elements are of type exact or shape, and each element accepts component-type sub-properties, assigning None to this array property can lead to some vague error messages. For example, with dcc.Dropdown:

image

import dash
from dash import html, dcc

app = dash.Dash(__name__)

app.layout = html.Div(
    [
        dcc.Dropdown(
            placeholder="Currently, there are no selectable options", options=None
        )
    ],
    style={"padding": 50},
)

if __name__ == "__main__":
    app.run(debug=True)

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