Cannot read property 'headerText' of undefined
See original GitHub issueI’m getting this error when I add search to my table.
TypeError: Cannot read property 'headerText' of undefined at http://localhost:3000/static/js/bundle.js:102201:27 at Array.map (native) at BootstrapTable.renderToolBar (http://localhost:3000/static/js/bundle.js:102197:31) at BootstrapTable.render (http://localhost:3000/static/js/bundle.js:101417:27) at http://localhost:3000/static/js/bundle.js:26822:22 at measureLifeCyclePerf (http://localhost:3000/static/js/bundle.js:26101:13) at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (http://localhost:3000/static/js/bundle.js:26821:26) at ReactCompositeComponentWrapper._renderValidatedComponent (http://localhost:3000/static/js/bundle.js:26848:33)
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
ok, I got the problem, if you use map for creating the
TableHeaderColumn
, please do not doing thisPlease use following, if you feel
isKey
is noisy, you can usekeyField
onBootstrapTable
instead.Let me know if the problem still remain, thanks
@AllenFang I enabled exportCSV and got this issue. Moved all TableHeaderColumn components inside map like you mentioned,now the issue is solved. Thank you.