fix edit control state on load

This commit is contained in:
zombieFox 2021-08-21 09:21:12 +01:00
parent 49bbbb074e
commit 83815a8651

View File

@ -14,6 +14,8 @@ toolbar.bar = {};
toolbar.bar.render = () => {
toolbar.current = new ToolbarControl();
const body = document.querySelector('body');
switch (state.get.current().toolbar.location) {
@ -29,8 +31,8 @@ toolbar.bar.render = () => {
};
toolbar.init = () => {
toolbar.current = new ToolbarControl();
toolbar.bar.render();
toolbar.current.update.edit();
};
export { toolbar }