The Wayback Machine - https://web.archive.org/web/20220409211457/https://github.com/plotly/dash/issues/1854
Skip to content
New issue

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

[BUG] DataTable javascript error with row_selectable and filter_action #1854

Open
jchang10 opened this issue Dec 4, 2021 · 0 comments
Open

[BUG] DataTable javascript error with row_selectable and filter_action #1854

jchang10 opened this issue Dec 4, 2021 · 0 comments

Comments

@jchang10
Copy link
Contributor

@jchang10 jchang10 commented Dec 4, 2021

Describe your context
Please provide us your environment, so we can easily reproduce the issue.

  • replace the result of pip list | grep dash below
dash                      2.0.0
dash-bootstrap-components 1.0.0
  • if frontend related, tell us your Browser, Version and OS

    • OS: [e.g. iOS] Windows
    • Browser [e.g. chrome, safari]: Chrome 96.0x, Edge 96.0x, Firefox 90.0 All report same Javascript error
    • Version [e.g. 22]

Describe the bug

DataTable with row_selectable="single or multi" and filter_action="native" seems to cause the JS error. This especially happens when data=[] and colums=[] or empty values.

Expected behavior

JS Error should not occur

Screenshots

This is the simplest example.

import dash
import dash_bootstrap_components as dbc
from dash import html
from dash.html import Div, Span
from dash_bootstrap_components import Row, Col
from dash import dcc
from dash import dash_table


layout = \
    Div([

        dash_table.DataTable(id='tasks-table',
            row_selectable='single',
            tooltip_duration=None,
            page_size=10,
            filter_action='native',
        ),

    ])

app = dash.Dash(__name__)

app.layout = layout

if __name__ == '__main__':
    app.run_server(debug=True, host='0.0.0.0', port=8000)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants