Devextreme-reactive: Cannot read property of undefined error when hiding a column when the page has no scrollbar

Created on 26 Aug 2019  路  2Comments  路  Source: DevExpress/devextreme-reactive

  • [x] I have searched this repository's issues and believe that this is not a duplicate.

I'm using ...

  • [X ] React Grid
  • [ ] React Chart
  • [ ] React Scheduler

Current Behaviour


I get an error when I hide columns when the page has no scrollbar. Error message: "Uncaught TypeError: Cannot read property 'type' of undefined" line 1795 in "dx-grid-core-es.js".

Expected Behaviour


The code should not break when a user hides a column without a horizontal scrollbar.

Steps to Reproduce

  1. Click on the "choose columns" button in the grid.
  2. Choose 1 or multiple columns to hide.
  3. Receive an error when there is no scrollbar.

Screenshots


image

Environment

  • devextreme-reactive: 2.0.2
  • react: 16.9.0
  • browser: Chrome, Firefox
  • bootstrap: none
  • react-bootstrap: none
  • material-ui: 6.4.1
Grid bug duplicate

Most helpful comment

Hi聽@abdellatifdanba,

We already received a report聽about this issue and fixed it. The fix will be published with our next release.

All 2 comments

Hi聽@abdellatifdanba,

We already received a report聽about this issue and fixed it. The fix will be published with our next release.

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests.

Was this page helpful?
0 / 5 - 0 ratings