Comments (4)
Just to confirm, I can also reproduce the error.
This came up recently on the forum as well and was reported by @mcsewhoy https://community.plotly.com/t/virtualization-true-and-style-data-conditional-filter-query-causes-error/55176
It looks like this issue started with Dash v 1.12.0 and dash-table v4.7.0 Prior versions work fine.
Here is another MWE for reference: You will get the error if you click on a cell at or near the bottom of the table.
import dash_table
import dash_html_components as html
app = dash.Dash(__name__)
params = ["id", "col1", "col2", "col3"]
table = dash_table.DataTable(
columns=[{"name": i, "id": i} for i in params],
data=[{param: i for param in params} for i in range(1, 20)],
virtualization=True,
style_data_conditional=[
{
"if": {"filter_query": "{col1} = 12"},
"backgroundColor": "#D1EEEE",
"color": "black",
}
],
)
app.layout = html.Div([table])
if __name__ == "__main__":
app.run_server(debug=True)
from dash-table.
Hello,
It seems like the issue with "Cannot read properties of undefined (reading '')" when virtualization = True also happens for
dash-table 5.0.0
dash 2.0.0
Could you please provide a fix? Without virtualization dash-table does not really help for analysing big sets of data...
from dash-table.
Dash version: 1.21.0
Dash-Table version: 4.12.0
Same issue in Firefox 91.0.2
from dash-table.
Native paging throws the same error "Cannot read properties of undefined"
from dash-table.
Related Issues (20)
- [BUG]: Values of overlayed non-fixed columns are visible in active_cell when using horizontal scrollbar and fixed_columns
- Filter datatable based on absolute value HOT 1
- option to remove case sensitivity icon HOT 1
- Case-insensitive filter causes "Cannot read property 'toString' of null" exception when the column contains null value HOT 1
- [BUG] Prop `data_previous` isn't correctly updated with copy+paste
- Python backend sorting and filtering while keeping row selections functionality HOT 2
- 0 or null value in filter result breaks DataTable with fixed_rows and fixed_columns
- after backend filtering the exported data contains only 10 records
- Feature Request: make checkbox (row_selectable) available only for specific (conditional) rows HOT 1
- Conditional column alignment not applied to headers
- Save input text in Input field inside Dash Editable Datatable without pressing 'Enter' key? HOT 3
- Copy selected value in Dropdown inside Dash Editable Datatable?
- Can not read properties of undefined 'X'
- Paste does not work on columns with editable equals true
- Include option rowReorder HOT 2
- fixed_columns causes issues with header alignment and overflowx
- Drag behavior for text being dragged into datatable is incomplete/odd
- Dash & XLwings. Attempting to pre-load Excel before Dash callback to save load time. HOT 1
- Dropdown won't display
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dash-table.