We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For regular callbacks, when multiple call of set_props to the same component id, only the last call is saved.
set_props
Example:
from dash import Dash, Input, html, set_props app = Dash() app.layout = [ html.Button("start", id="start"), html.Div("initial", id="output"), ] @app.callback( Input("start", "n_clicks"), ) def on_click(_): set_props("output", {"children": "changed"}) set_props("output", {"style": {"background": "red"}}) if __name__ == "__main__": app.run(debug=True)
Clicking on the start button only set the background red, the text stays at "initial". The props should be merged and both updated.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
For regular callbacks, when multiple call of
set_props
to the same component id, only the last call is saved.Example:
Clicking on the start button only set the background red, the text stays at "initial". The props should be merged and both updated.
The text was updated successfully, but these errors were encountered: