Fix handson table initialization [SCI-3749] (#2021)

* Fix handson table initialization

* Fix markup
This commit is contained in:
aignatov-bio 2019-09-05 08:35:28 +02:00 committed by GitHub
parent b8e68e02a1
commit 15dc25cee9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -67,6 +67,9 @@
var hot = $container.handsontable('getInstance');
var data = JSON.parse(contents.attr('value'));
hot.loadData(data.data);
setTimeout(() => {
hot.render()
}, 0)
});
}

View file

@ -305,6 +305,9 @@
if (contents.attr("value")) {
var data = JSON.parse(contents.attr("value"));
hot.loadData(data.data);
setTimeout(() => {
hot.render()
}, 0)
}
});
}