Remove focus from form elements as well.

This commit is contained in:
Behind The Math committed 2018-01-29 13:51:00 -05:00
1 parent 2d4df39f72
commit 90d26d641c
1 file changed
+1 -1
+1 -1
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) { }