Fix element blurring (removing focus) #116
2
index.js
2
index.js
@@ -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