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.
Uncaught TypeError: this.updateProps is not a function #36
Open
Description
Hi all,
I'm starting to use this component, it's looking good so far. But I'm receiving this error:
Uncaught TypeError: this.updateProps is not a function
at Object.value [as onClearFilters] (bundle.js:7)
at Object.<anonymous> (bundle.js:58)
at e.notifyAll (react-dom.min.js:12)
at o.close (react-dom.min.js:14)
at o.closeAll (react-dom.min.js:15)
at o.perform (react-dom.min.js:15)
at o.perform (react-dom.min.js:14)
at Object.T [as flushBatchedUpdates] (react-dom.min.js:14)
at r.closeAll (react-dom.min.js:15)
at r.perform (react-dom.min.js:15)
at Object.batchedUpdates (react-dom.min.js:14)
at Object.i [as batchedUpdates] (react-dom.min.js:14)
at dispatchEvent (react-dom.min.js:14)
Opening filters section shows ok, but after clicking to close it back, this error is thrown.
I'm using the approach to have multiple pages described here https://plot.ly/dash/urls . And this is how I'm defining the component:
rows_df = pd.DataFrame({
'x': ['A', 'B', 'C', 'D', 'E', 'F'],
'y': [4, 3, 1, 2, 3, 6],
'z': ['a', 'b', 'c', 'a', 'b', 'c']
})
layout = html.Div([
html.H4('DataTable'),
html.Label('Report type:', style={'font-weight': 'bold'}),
dt.DataTable(
rows=rows_df.to_dict('records'),
editable=False,
row_selectable=True,
filterable=True,
sortable=True,
id='table'
),
html.Div(id='selected-indexes')
], className="container")