Remove focus from form elements as well.

This commit is contained in:
Behind The Math
2018-01-29 13:51:00 -05:00
parent 2d4df39f72
commit 90d26d641c

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