When the Handsontable has defined className property in the initialization object that CSS class later is not removed from the DOM after updating that property through updateSettings() method. This behavior is implemented in the core (https://github.com/handsontable/handsontable/blob/master/src/core.js#L1798) but doesn't work as it suggests.
updateSettings with new className value an old CSS class is not removed from the DOM.
https://jsfiddle.net/dver40s6/
I think that @pnowak was working on this in #6425
Fixed in #6425 and #6425. Adding to v8 release
The issue is fixed in Handsontable v8.0.0
CDN https://cdn.jsdelivr.net/gh/handsontable/handsontable@latest/dist/handsontable.full.css
https://cdn.jsdelivr.net/gh/handsontable/handsontable@latest/dist/handsontable.full.js
NPM npm i handsontable
Release Notes https://github.com/handsontable/handsontable/releases


I highly encourage anyone to test the new version and leave some feedback.
Most helpful comment
I think that @pnowak was working on this in #6425