Remove focus from form elements as well.
This commit is contained in:
1 parent
2d4df39f72
commit
90d26d641c
1 file changed
+1
-1
@@ -130,7 +130,7 @@ Pjax.prototype = {
|
||||
|
||||
// Clear out any focused controls before inserting new page contents.
|
||||
// we clear focus on non form elements
|
||||
if (document.activeElement && !document.activeElement.value && contains(this.options.selectors, document.activeElement)) {
|
||||
if (document.activeElement && contains(this.options.selectors, document.activeElement)) {
|
||||
try {
|
||||
document.activeElement.blur()
|
||||
} catch (e) { }
|
||||
|
||||
Reference in new issue
Block a user