[GH #9513] Comments plugin problem

Tags: #<Tag:0x00007efc72f90900> #<Tag:0x00007efc72f907c0>

Hello,
I am using handsontable version 12.0.0 in Angular and while trying to use commentsPlugin, I came across a problem. The comments seems to work randomly.

After a few trials, it seems that the problem appears when columns are defined (opposed to columnHeader set to true) in the handsontable settings.

Here’s a fiddle to illustrate my problem:
https://jsfiddle.net/ofLqeyph/3/

Thanks for your help.

Hi @renaud.bellotto

If the data in the first row is incomplete (it does not provide all the keys of the dataset) Handsontable has some issues with the calculations of cells. But that should be gone if dataSchema is used. However, in this case, it does not solve the issue. Here’s an updated demo https://jsfiddle.net/njd2wz1k/5/ with dataSchema.

I reported this issue on the official Github board at https://github.com/handsontable/handsontable/issues/9513 and till the issue is solved I recommend adding the missing keys to the first’s row object as shown here https://jsfiddle.net/njd2wz1k/7/

Thanks for the workaround @aleksandra_budnik !!
I didn’t know about the dataschema.