diff --git a/extensions/odoo_theme/static/js/page_toc.js b/extensions/odoo_theme/static/js/page_toc.js index c18bc6f0e..e9e07f9ad 100644 --- a/extensions/odoo_theme/static/js/page_toc.js +++ b/extensions/odoo_theme/static/js/page_toc.js @@ -28,7 +28,7 @@ /** * Entirely hide the local tree of contents. */ - const _hidePageToc = () => this.pageToc.style.visibility = 'hidden'; + const _hidePageToc = () => this.pageToc.style.display = 'none'; /** * Add the relevant classes on the TOC entries (and lists) whose section is focused.