I implemented html2canvas for downloading printscreen of handsontable by clicking on button. If I click first time everything is ok but after second time I got a following error:
Uncaught TypeError: Cannot set property 'id' of null at HTMLButtonElement.capture
body.id = 'capture';`
so body is null I don’t understand why.