Skip to content
This repository was archived by the owner on Jun 22, 2019. It is now read-only.
This repository was archived by the owner on Jun 22, 2019. It is now read-only.

Issue with select all and multiple DataTables #79

Open
@antogaped

Description

@antogaped

Hi all,

I've recently been facing an issue when I try to use more than one table in the same layout (simple code attached)

import dash
import dash_core_components as dcc
import dash_html_components as html
import dash_table_experiments as dte
import pandas as pd

table1 = pd.DataFrame([[1,2],[2,1]],columns=['Col1-1','Col2-1'])
table2 = pd.DataFrame([[1,2],[2,1]],columns=['Col1-2','Col2-2'])

app = dash.Dash()


app.layout = html.Div([dte.DataTable(id='table1', rows=table1.to_dict('records'), row_selectable=True),
							html.Div(style={'margin': '5% 0 0 '}),					   
					      dte.DataTable(id='table2', rows=table2.to_dict('records'), row_selectable=True)
		   ])

if 	__name__ == '__main__':
	app.run_server()

Once you run the server and try to select all rows in second table, then all rows in first table are selected automatically instead of second table. However, this issue happens arbitrarily.

Any idea or suggestion?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions