Skip to content

Commit

Permalink
EZP-32430: Enabled clicks after using back/forward buttons in browser (
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 committed Apr 28, 2022
1 parent 93ffb2c commit dae691e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bundle/Resources/public/js/scripts/admin.prevent.click.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@

return null;
};

global.addEventListener('pageshow', (event) => {
if (event.persisted) {
doc.querySelector('body').classList.remove('ez-prevent-click');
}
});
})(window, window.document);

0 comments on commit dae691e

Please sign in to comment.