]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/components/editor-toolbox.js
Fixed issue causing text overlap in sort select box
[bookstack] / resources / assets / js / components / editor-toolbox.js
index bf6c4d809bda5d04c862b4e60dfbcdcb243a3fec..354bf0a86b3262f4a5e14a9e446ea87ee9405c65 100644 (file)
@@ -23,6 +23,8 @@ class EditorToolbox {
 
     toggle() {
         this.elem.classList.toggle('open');
+        const expanded = this.elem.classList.contains('open') ? 'true' : 'false';
+        this.toggleButton.setAttribute('aria-expanded', expanded);
     }
 
     setActiveTab(tabName, openToolbox = false) {
@@ -44,4 +46,4 @@ class EditorToolbox {
 
 }
 
-module.exports = EditorToolbox;
\ No newline at end of file
+export default EditorToolbox;
\ No newline at end of file