Skip to content

Commit 63488d3

Browse files
author
Alexandre Stanislawski
committed
fix(url-sync): make input not to lose focus
1 parent 35825df commit 63488d3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

widgets/url-sync/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ var AlgoliaSearchHelper = require('algoliasearch-helper').AlgoliaSearchHelper;
22

33
var isEqual = require('lodash/lang/isEqual');
44
var merge = require('lodash/object/merge');
5-
var forEach = require('lodash/collection/forEach');
65

76
function timerMaker(t0) {
87
var t = t0;
@@ -110,10 +109,6 @@ class URLSync {
110109

111110
if (isEqual(fullHelperState, fullState)) return;
112111

113-
forEach(window.document.querySelectorAll('input'), function(i) {
114-
i.blur();
115-
});
116-
117112
helper.setState(fullState).search();
118113
});
119114
}

0 commit comments

Comments
 (0)