Chromium Code Reviews| Index: chrome/browser/resources/md_bookmarks/toolbar.js |
| diff --git a/chrome/browser/resources/md_bookmarks/toolbar.js b/chrome/browser/resources/md_bookmarks/toolbar.js |
| index bfce3d0d8f86bb4c8c9432a5d8be00d5d7cb5263..b47194d934dbbadb0f2869016ced42c543030602 100644 |
| --- a/chrome/browser/resources/md_bookmarks/toolbar.js |
| +++ b/chrome/browser/resources/md_bookmarks/toolbar.js |
| @@ -69,7 +69,7 @@ Polymer({ |
| /** @private */ |
| onSearchTermChanged_: function() { |
| - if (!this.searchTerm) |
| - this.searchField.setValue(''); |
| + if (this.searchField.getValue() != this.searchTerm) |
|
calamity
2017/01/18 03:37:21
What happens if you just remove this check...?
angelayang
2017/01/18 06:34:03
Oh yes it would be fine, i didn't realize that tha
|
| + this.searchField.setValue(this.searchTerm || ''); |
| }, |
| }); |