Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 2931fff

Browse files
author
scottjehl
committed
blur the active/focused element on changepage sooner. Thx @goulvench
1 parent 74ebc36 commit 2931fff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/jquery.mobile.navigation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@
166166

167167
//reset base to pathname for new request
168168
if(base){ base.reset(); }
169+
170+
//kill the keyboard
171+
$( window.document.activeElement ).add(':focus').blur();
169172

170173
// if the new href is the same as the previous one
171174
if ( back ) {
@@ -179,9 +182,6 @@
179182

180183
//function for transitioning between two existing pages
181184
function transitionPages() {
182-
183-
//kill the keyboard
184-
$( window.document.activeElement ).blur();
185185

186186
//get current scroll distance
187187
var currScroll = $window.scrollTop();

0 commit comments

Comments
 (0)