mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-11 09:26:37 +08:00
Fix handson table initialization [SCI-3749] (#2021)
* Fix handson table initialization * Fix markup
This commit is contained in:
parent
b8e68e02a1
commit
15dc25cee9
2 changed files with 6 additions and 0 deletions
|
@ -67,6 +67,9 @@
|
|||
var hot = $container.handsontable('getInstance');
|
||||
var data = JSON.parse(contents.attr('value'));
|
||||
hot.loadData(data.data);
|
||||
setTimeout(() => {
|
||||
hot.render()
|
||||
}, 0)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -305,6 +305,9 @@
|
|||
if (contents.attr("value")) {
|
||||
var data = JSON.parse(contents.attr("value"));
|
||||
hot.loadData(data.data);
|
||||
setTimeout(() => {
|
||||
hot.render()
|
||||
}, 0)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue