[BUG] Clientside callbacks with the same input and no outputs override each other
@T4rk1n ya está trabajando en esto.
Desde el 4/2/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 24.4k
- Forks
- 2.3k
- Merge medio
- 1 d 21 h
- PR fusionados (30 d)
- 19
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de plotly/dash
-
good first issue P3 size: 1 task
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
enhancement P2 size: 5
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
-
enhancement P3 size: 10+
-
P2 size: 1 task
-
enhancement P3 size: 1
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
Todos los issues de plotly/dash
Issues similares
-
essnmx good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
-
[Feature] 奇物选择添加优先级 Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
syfoud/Simulated_Scepter#174 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Giskard-AI/giskard-oss#2840 · 1 comentario ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Abiertoarea: repo bug perceived difficulty: 2
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
yeti-platform/yeti#1380 ·