This repository was archived by the owner on Aug 29, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 72
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
[BUG] DashTable and Wildcard / Pattern Matching callbacks not working #765
Copy link
Copy link
Closed
Labels
Description
Describe your context
I want to use a datatables 'data' attribute (or any other) in a callback but using the new pattern matching callbacks.
This results in a seemingly unrelated JS error (parsing problem?)
Failed to execute 'addRule' on 'CSSStyleSheet': Failed to parse the rule '#{"action":"test","table":1} .dash-fixed-column tr { height: 30px; }'.
- replace the result of
pip list | grep dashbelow
dash 1.11.0
dash-bootstrap-components 0.9.2
dash-canvas 0.1.0
dash-core-components 1.9.1
dash-cytoscape 0.1.1
dash-daq 0.3.3
dash-extra-components 0.0.1
dash-html-components 1.0.3
dash-leaflet 0.0.3
dash-planner 0.0.1
dash-renderer 1.4.0
dash-table 4.6.2
-
if frontend related, tell us your Browser, Version and OS
- OS: OSX
- Browser Any
Describe the bug
Here is a test setup to reproduce the bug:
import dash
import dash_table
import pandas as pd
import dash_html_components as html
from dash.dependencies import MATCH, Output, Input, ALL
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/solar.csv')
app = dash.Dash(__name__)
app.layout = html.Div([
html.Div(id={'table': 1, 'action': 'output'}),
dash_table.DataTable(
id={'table': 1, 'action': 'test'},
columns=[{"name": i, "id": i} for i in df.columns],
data=df.to_dict('records'),
)])
@app.callback(Output({'table': MATCH, 'action': 'output'}, 'children'),
[Input({'table': MATCH, 'action': 'test'}, 'active_cell')])
def test(xy):
return xy
if __name__ == '__main__':
app.run_server(debug=True)
Expected behavior
- No Failed to execute 'addRule' on 'CSSStyleSheet' Error
- Working callback
Screenshots
Reactions are currently unavailable

