]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/components/collapsible.js
Update errors.php
[bookstack] / resources / assets / js / components / collapsible.js
index 40ab325082df08a3a2cc37c968a3ffeabe6675b8..464f394c1e7e42a8d1dc568c94568d53f1498819 100644 (file)
@@ -18,11 +18,13 @@ class Collapsible {
 
     open() {
         this.elem.classList.add('open');
+        this.trigger.setAttribute('aria-expanded', 'true');
         slideDown(this.content, 300);
     }
 
     close() {
         this.elem.classList.remove('open');
+        this.trigger.setAttribute('aria-expanded', 'false');
         slideUp(this.content, 300);
     }