Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] website: make anchor links work in mobile menu
A anchor menu in the mobile collapse related to an element in the current page doesn't work correctly: - The collapse-menu doesn't close - If the menu is large enough, on mobile, you actually don't even see the page scrolling behind it so it looks like the click did nothing. This is probably because of the switch from BS4 to BS5. In later version, it's even worse, as we are using bootstrap Offcanvas instead of collapse, creating another bug: - The page doesn't scroll at all This will be fixed in the forward port. This commit simply manually closes the collapse before starting our own smooth scrolling. It also targets the desktop offcanvas menu (when hamburger layout is selected). opw-3604963 closes odoo#146132 Signed-off-by: Quentin Smetz (qsm) <[email protected]>
- Loading branch information