Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js |
| index 06160f5a513a7b3de38ae1ffb8a136039d0ed287..6ea5c4771499bd197906f72b4267c00761e4e5b5 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js |
| @@ -490,7 +490,7 @@ UI.TextPrompt = class extends Common.Object { |
| this._queryRange = new Common.TextRange( |
| 0, beforeRange.toString().length, 0, beforeRange.toString().length + fullWordRange.toString().length); |
| - var shouldSelect = !this._disableDefaultSuggestionForEmptyInput || this.text(); |
| + var shouldSelect = !this._disableDefaultSuggestionForEmptyInput || !!this.text(); |
|
kdzwinel
2017/03/21 12:32:38
not really related, but I found it while investiga
einbinder
2017/03/21 23:30:08
Good catch! I never trust that booleans in devtool
|
| if (this._suggestBox) { |
| this._suggestBox.updateSuggestions( |
| this._boxForAnchorAtStart(selection, fullWordRange), completions, shouldSelect, !this._isCaretAtEndOfPrompt(), |