[IMP] fixes page toc dropdown arrows not closing, sets aria-expanded to false

This commit is contained in:
Elisabeth Dickinson 2021-03-26 15:48:37 +01:00
parent 4b9ce8f034
commit 8990eec83f

View File

@ -78,6 +78,9 @@
this.pageToc.querySelectorAll('li,ul').forEach(element => {
element.classList.remove('o_active_toc_entry', 'show');
});
this.pageToc.querySelectorAll('i').forEach(element => {
element.setAttribute('aria-expanded', 'false');;
});
};
const _flagActiveHierarchy = (headingRef) => {