Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
CNFeffery opened this issue Sep 20, 2024 · 0 comments · Fixed by #3011
Closed

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

CNFeffery opened this issue Sep 20, 2024 · 0 comments · Fixed by #3011

Comments

@CNFeffery
Copy link
Contributor

CNFeffery commented Sep 20, 2024

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)
CNFeffery added a commit to CNFeffery/dash that referenced this issue Sep 20, 2024
T4rk1n added a commit that referenced this issue Sep 20, 2024
Fix #3010 Assigning None to exact or shape array properties causes exception
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant