Fix weird scroll behavior on back button
This commit is contained in:
@ -104,6 +104,7 @@ import { SITE } from '~/config.mjs';
|
||||
};
|
||||
|
||||
window.onpageshow = function () {
|
||||
document.documentElement.classList.add('motion-safe:scroll-smooth');
|
||||
const elem = document.querySelector('[data-aw-toggle-menu]');
|
||||
if (elem) {
|
||||
elem.classList.remove('expanded');
|
||||
|
Reference in New Issue
Block a user