Possible datatable pagination bug

Greetings. It seems like there is a bug (not too sure if it is known or new) with native filtering when it is used on the datatable with pagination after page 1. I have checked the datatable documentation again and it seems like the bug persist there too.

Please see this gif below:
82719817-92ef8700-9ce0-11ea-9136-2279d6afd8de

When I am in page 2 and type “Cal” or “Texas”, the datatable returns empty (even when Texas is in page 2). This had been tested on a larger dataset and the same issue occurs.

Below is the full sample code that replicate this issue:

import dash
import dash_table
import pandas as pd

df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/solar.csv')

app = dash.Dash(__name__)

app.layout = dash_table.DataTable(
    id='table',
    columns=[{"name": i, "id": i} for i in df.columns],
    data=df.to_dict('records'),
	filter_action="native", 
	row_selectable="multi",
	page_action="native", 
	page_current=0,
	page_size=5,
)

if __name__ == '__main__':
    app.run_server(debug=True)
1 Like

Let me upvote this and request some info on it