When I add 2 Dash DataTables on the same page and enable paging (native), it doesn’t work for the first table, only for the second one. On the first table I see the paging controls, but nothing happens when I try to use (click on) them.
Code example
import dash
import dash_table
import dash_html_components as html
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/solar.csv')
app = dash.Dash(__name__)
table1 = dash_table.DataTable(
id='table1',
columns=[{"name": i, "id": i} for i in df.columns],
data=df.to_dict('records'),
page_action="native",
page_size=5,
)
table2 = dash_table.DataTable(
id='table2',
columns=[{"name": i, "id": i} for i in df.columns],
data=df.to_dict('records'),
page_action="native",
page_size=7,
)
app.layout = html.Div([
table1,
table2
])
if __name__ == '__main__':
app.run_server(debug=True)