X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/1ee3e779e4b9b0a92f701a72f21a72c83cb1ce68..refs/pull/3512/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(); + } } }