Unfocus focused elements before changing the page to reset the tab order

This commit is contained in:
Kevin MacMartin 2019-05-10 23:38:27 -04:00
parent 9f8e83624a
commit 8dfb92fd2a

View file

@ -116,6 +116,11 @@ router.beforeEach((to, from, next) => {
if (store.getters.getFirstLoad) { if (store.getters.getFirstLoad) {
next(); next();
} else { } 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 // Fade the page out and scroll when moving from one page to another
TweenMax.to("#router-view", 0.25, { TweenMax.to("#router-view", 0.25, {
opacity: 0, opacity: 0,