Dash-by-Plotly icon indicating copy to clipboard operation
Dash-by-Plotly copied to clipboard

Error in Dash2.0 solution 4: need MantineProvider to for mantine components.

Open delale opened this issue 1 year ago • 0 comments

As explained in the dash-mantine-components Getting Started page, the app needs to be wrapped around a dmc.MantineProvider, otherwise an error is thrown (only in debug mode) and the alert is not visible. Proposed fix: Change line 21 of Good_to_Know/Dash2.0/Exercises/solution-4.py from

app.layout = dbc.Container([mytitle, myalert, mygraph, dropdown])

to

app.layout = dmc.MantineProvider([mytitle, myalert, mygraph, dropdown])

delale avatar Jul 03 '24 10:07 delale