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

Issue with select all and multiple DataTables #79

Open
antgar88 opened this issue Jul 12, 2018 · 0 comments
Open

Issue with select all and multiple DataTables #79

antgar88 opened this issue Jul 12, 2018 · 0 comments

Comments

@antgar88
Copy link

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!

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

No branches or pull requests

1 participant