plotly / dash-table-experiments

NO LONGER SUPPORTED - use https://github.com/plotly/dash-table instead
MIT License
174 stars 57 forks source link

Uncaught TypeError: this.updateProps is not a function #36

Open p1nox opened 6 years ago

p1nox commented 6 years ago

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.

aaa

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")
RenzoDS commented 6 years ago

It will be fixed on this pull https://github.com/plotly/dash-table-experiments/pull/41