Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1233)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js

Issue 2535203004: [Devtools] Fixed selection removal in FilterBar on blur (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js b/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
index b54e5c90aef91e29fe3dd247b909cdc80f026c82..d9b38aa1881e228a5bf0db0bd411ea1d57f17e0f 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
@@ -289,10 +289,10 @@ UI.TextFilterUI = class extends Common.Object {
}
_cancelSuggestion() {
- if (this._suggestionBuilder && this._suggestBox.visible) {
- this._suggestionBuilder.unapplySuggestion(this._filterInputElement);
- this._suggestBox.hide();
- }
+ if (!this._suggestionBuilder || !this._suggestBox.visible())
+ return;
+ this._suggestionBuilder.unapplySuggestion(this._filterInputElement);
+ this._suggestBox.hide();
}
_onInput() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698