Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[BUG] Error when passing list of components in dash component properties other than children. #2302

Closed
snehilvj opened this issue Nov 5, 2022 · 0 comments · Fixed by #2332

Comments

@snehilvj
Copy link

snehilvj commented Nov 5, 2022

dash                          2.7.0
dash-core-components          2.0.0
dash-html-components          2.0.0
dash-table                    5.0.0
dash-mantine-components       0.11.0a0

Describe the bug

When passing components in dash component properties other than children, an error is thrown if a list of components is passed.

from dash import Dash
from dash_iconify import DashIconify

import dash_mantine_components as dmc

app = Dash(__name__)

app.layout = dmc.Divider(label=["GitHub", DashIconify(icon="fa:github")])


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

Error:
Screenshot 2022-11-06 at 12 10 52 AM

This behaviour is observed even if a single component is passed in the list:

app.layout = dmc.Divider(label=[DashIconify(icon="fa:github")])

Expected behavior

No error should be displayed even when multiple components are passed.

Screenshots

NA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant