Fix element blurring (removing focus) #116

Merged
BehindTheMath merged 3 commits from fix/blur into master 2018-01-29 15:03:24 -05:00
Showing only changes of commit 90d26d641c - Show all commits

View File

@@ -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) { }