-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Thank you so much for helping improve the quality of Dash!
We do our best to catch bugs during the release process, but we rely on your help to find the ones that slip through.
Describe your context
- replace the result of
pip list | grep dashbelow
dash-design-kit==3.0.0rc2
dash==4.0.0rc2
gunicorn==23.0.0
pandas>=1.1.5
Describe the bug
from dash import Dash, dcc, html, Input, Output, callback
import time
app = Dash()
app.layout = html.Div([
html.H3("Edit text input to see loading state"),
html.Div("Input triggers local spinner"),
dcc.Input(id="loading-input-1"),
dcc.Loading(
id="loading-1",
type="default",
children=html.Div(id="loading-output-1")
),
html.Div([
html.Div('Input triggers nested spinner'),
dcc.Input(id="loading-input-2"),
dcc.Loading(
id="loading-2",
children=[html.Div([html.Div(id="loading-output-2")])],
type="circle",
)
]),
])
@callback(Output("loading-output-1", "children"), Input("loading-input-1", "value"))
def input_triggers_spinner(value):
time.sleep(1)
return value
@callback(Output("loading-output-2", "children"), Input("loading-input-2", "value"))
def input_triggers_nested(value):
time.sleep(1)
return value
if __name__ == "__main__":
app.run(debug=False)
Expected behavior
space between label and input
Metadata
Metadata
Assignees
Labels
No labels