Skip to content

Commit

Permalink
fix(searchBox): do not update input's value if focused
Browse files Browse the repository at this point in the history
fixes #163
  • Loading branch information
vvo committed Oct 1, 2015
1 parent 07e09e9 commit 0e85f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/search-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function searchbox(params) {
}

helper.on('change', function(state) {
if (input.value !== state.query) {
if (input !== document.activeElement && input.value !== state.query) {
input.value = state.query;
}
});
Expand Down

0 comments on commit 0e85f0d

Please sign in to comment.