React hotTable render in material UI modal

Tags: #<Tag:0x00007f0b008e1e28> #<Tag:0x00007f0b008e1ce8>

Hi Team,

AM unable render HotTable in modal component, it showing hotinstace not found,
on load am able to fetch the hotinstance, while rendering in modal I can’t initate hotTable, Please help me out.



Could you share a bit more details about the modal component? Is it some library or a DIV element that you control over CSS? A code snippet would also be helpful.

Hey! I couldn’t resist but answer. That issue happens 99% of the times when the handsontable is defined and declared inside the ready function and the developer is trying to use it in a modal component outside the ready function.
Try this:

var hot;
$(function() {
hot = new handsontable (container, {
 //your code here