React-bootstrap-table2: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'

Created on 1 Oct 2018  路  4Comments  路  Source: react-bootstrap-table/react-bootstrap-table2

Error on overlayFactory() implementation

<BootstrapTable keyField="id" data={this.state.data} columns={this.state.columns} striped bootstrap4={ true } loading={ true } overlay={ overlayFactory({ spinner: true, background: 'rgba(192,192,192,0.3)' })} />
Here's the error message:

app.js:103595 The above error occurred in the component:
in TableLoadingOverlayWrapper (created by BootstrapTable)
in BootstrapTable
in SortProvider
in DataProvider (created by BootstrapTableContainer)
in BootstrapTableContainer (created by DailyTimeRecord)
in div (created by DailyTimeRecord)
in div (created by DailyTimeRecord)
in DailyTimeRecord (created by Route)
in Route (created by Main)
in Switch (created by Main)
in div (created by Main)
in div (created by Main)
in Switch (created by Main)
in Router (created by BrowserRouter)
in BrowserRouter (created by Main)
in div (created by Main)
in Main

Most helpful comment

I faced the same error in the browser, and I found that the overlay functionalities works when the noDataIndication prop is provided.
So what I did was to provide a blank noDataIndication, then I can use the overlay with no error.

All 4 comments

@HumbleCarl i will check this, currently, I will not suggest people to use react-bootstrap-table2-overlay instead you can custom by yourself, you can check this example.

Currently, react-bootstrap-table2-overlay use third party library and it produced some bugs.

Anyway, I will look into it but not sure the fixing time.

Copy that. Thank you sir!

I faced the same error in the browser, and I found that the overlay functionalities works when the noDataIndication prop is provided.
So what I did was to provide a blank noDataIndication, then I can use the overlay with no error.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eylonronen picture eylonronen  路  3Comments

harishkumarreddy12 picture harishkumarreddy12  路  3Comments

bogannathan picture bogannathan  路  4Comments

epsyan picture epsyan  路  4Comments

kamarajuPrathi picture kamarajuPrathi  路  4Comments