X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/6917ea088f905ec57e16d8795ad0bcb191c38b52..refs/pull/3391/head:/resources/js/components/editor-toolbox.js diff --git a/resources/js/components/editor-toolbox.js b/resources/js/components/editor-toolbox.js index 354bf0a86..3a1442d75 100644 --- a/resources/js/components/editor-toolbox.js +++ b/resources/js/components/editor-toolbox.js @@ -41,7 +41,9 @@ class EditorToolbox { if (cName === tabName) this.contentElements[i].style.display = 'block'; } - if (openToolbox) this.elem.classList.add('open'); + if (openToolbox && !this.elem.classList.contains('open')) { + this.toggle(); + } } }