I want to show a comment for certain cells, depending on the content of the cell.
For this reason I implemented a check in the aftertValidate hook.
Unfortunately, the comment box is displayed only for some cells on mouseover, while nothing happens for other cells.
If auto validates the results after loading the table. It also makes cells invalid upon change. It, however, does not remove the comment when the cell is validated correctly. But you can use the removeCommentAtCell method to remove the comment when the cell is valid (docs: https://handsontable.com/docs/8.3.0/Comments.html#removeCommentAtCell)