-
Notifications
You must be signed in to change notification settings - Fork 223
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hi, I encountered the exact same issue with the following versions:
dash==3.0.1dash-bootstrap-components==2.0.0When running this code as taken from the dash-docs (https://dash.plotly.com/dash-core-components/confirmdialogprovider), but with a
dbc.Button:from dash import Dash, Input, Output, html, dcc, callback import dash_bootstrap_components as dbc app = Dash() app.layout = html.Div([ dcc.ConfirmDialogProvider( children=dbc.Button('Click Me', ), id='danger-danger-provider', message='Danger danger! Are you sure you want to continue?' ), html.Div(id='output-provider') ]) @callback(Output('output-provider', 'children'), Input('danger-danger-provider', 'submit_n_clicks')) def update_output(submit_n_clicks): if not submit_n_clicks: return '' return """ It was dangerous but we did it! Submitted {} times """.format(submit_n_clicks) if __name__ == '__main__': app.run(debug=True)The ConfirmDialog does not show up. When using a
html.Buttonor admc.Button, it is working as intended.
Please reopen if I did not mix something up here :-)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working