diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index e7d81c4..35c8b0e 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -116,6 +116,11 @@ router.beforeEach((to, from, next) => { if (store.getters.getFirstLoad) { next(); } else { + // Unfocused any focused elements + if ("activeElement" in document) { + document.activeElement.blur(); + } + // Fade the page out and scroll when moving from one page to another TweenMax.to("#router-view", 0.25, { opacity: 0,