[BUG] Clientside callbacks with the same input and no outputs override each other
Maintainer antworten meist innerhalb von 2 Tagen
@T4rk1n arbeitet bereits daran.
Seit 04.2.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Environment
pip list | grep dash output:
dash 3.3.0
dash_ag_grid 33.3.3
dash-bootstrap-components 2.0.4
dash_cytoscape 1.0.2
- OS: Ubuntu 22.04.5
- Browser: Firefox 147.0.2
Bug description
See example code below. Clicking the button should show "one" and "two" in the developer console (I am not sure if there is a specified order in which they are expected to show up; however, I don't really mind as long as both callbacks get triggered).
However, instead only "two" is shown. It looks like the first clientside callback gets "overriden" somehow. This is not a problem when the callbacks have defined outputs.
There are some applications I have where it is useful for one component to trigger multiple clientside callbacks, so this bug does impact me (although it seems pretty straightforward to work around it).
Minimal example
#! /usr/bin/env python3
from dash import Dash, html, clientside_callback, Input
app = Dash()
app.layout = [
html.Button("click me", id="testBtn"),
]
clientside_callback(
"""
function(n_clicks) {
console.log("one");
}
""",
Input("testBtn", "n_clicks"),
prevent_initial_call=True,
)
clientside_callback(
"""
function(n_clicks) {
console.log("two");
}
""",
Input("testBtn", "n_clicks"),
prevent_initial_call=True,
)
app.run(debug=True, port=8055)
Screen capture of the bug
- Vorherrschende Sprache
- Python
- Sterne
- 24.4k
- Forks
- 2.3k
- Ø Merge
- 2 T. 19 Std.
- Gemergte PRs (30 T.)
- 26
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus plotly/dash
-
P2 plotly-internal size: 1 task
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Extract graph schema validation into properly named testEvtl. vergeben @Nice6042 hat das vor 60 Tagen übernommen. Offengood first issue P3 size: 1 task
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
plotly/dash#3735 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
[BUG] dcc.Dropdown: hidden focus-target input is focusable inside aria-hidden and can overflow its wrapperEvtl. vergeben @KoolADE85 hat das vor 8 Tagen übernommen. Offenbug P2 size: 1
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 56/100
plotly/dash#4042 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
P3 plotly-internal size: 10+ task
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 30/100
plotly/dash#4040 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Drop Python 3.9 SupportOffenP2 plotly-internal size: 5 task
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
plotly/dash#4038 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
Ähnliche Issues
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
Discord webhook notifications fail with HTTP 403 (Cloudflare blocks default urllib User-Agent)Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
tharje/spooler-v2#20 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
Bump version of azure-servicebusEvtl. vergeben @joostlek hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
home-assistant/core#186275 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100