Hello,
My table doesn’t fill as I scroll horizontally. The error I get is: handsontable.full.min.js:34 Uncaught TypeError: Cannot read property 'indicator' of undefined
we had a similar report here https://github.com/handsontable/handsontable/issues/7182 but it was not the issue with Handsontable itself.
Can you share a simplified demo where the issue can be replicable (I propose JSFiddle, as the code is editable)?
Hi,
Thanks for your quick reply. It is indeed related to the columnsorting plugin. Also similar to DblClick router redirect " TypeError: Cannot read property 'indicator' of undefined".
When I remove the plugin everything work fine. I just don’t know how to troubleshoot a problem like that.
It’s a bit difficult to put the code in a JSFiddle, but if you have no idea what I could try, I’ll do it tomorrow.
Thanks
Hey Aleksandra - it looks like the issue has been solved and merged to develop. Are you able to share any information on timing of the release which contains this fix? I wasn’t sure if the 2 weeks you mentioned in the previous post applied to fixing it, or making the fix available in a release?
Hi @andrew.jerrim today we have a code freeze. It means that we won’t merge anything new but will take that time to test the branch. Release is planned for the 1st of October.
In JavaScript almost everything is an object, null and undefined are exceptions. This error occurs when a property is read or a function is called on an undefined variable. Undefined means that a variable has been declared but has not been assigned a value. In JavaScript, properties and functions can only belong to objects. Since undefined is not an object type, calling a function or a property on such a variable causes the TypeError: [Cannot read property] of undefined.
If you are not sure a variable that will always have some value, the best practice is to check the value of variables for null or undefined before using them. To avoid getting these types of errors, you need to make sure that the variables you are trying to read do have the correct value. This can be done in various ways. You can do if checks before dealing with objects whose values are bound to change: