| Index: Source/devtools/front_end/FilteredItemSelectionDialog.js
|
| diff --git a/Source/devtools/front_end/FilteredItemSelectionDialog.js b/Source/devtools/front_end/FilteredItemSelectionDialog.js
|
| index 6543075a8dcd9c1ff2d7d05bfca4a5d53e453c50..2a4c7342e43ed1ca1c9a206cbdbc2ff1adbdd103 100644
|
| --- a/Source/devtools/front_end/FilteredItemSelectionDialog.js
|
| +++ b/Source/devtools/front_end/FilteredItemSelectionDialog.js
|
| @@ -118,7 +118,7 @@ WebInspector.FilteredItemSelectionDialog.prototype = {
|
| {
|
| if (!this._delegate.itemCount())
|
| return;
|
| - var selectedIndex = this._selectedIndexInFiltered < this._filteredItems.length ? this._filteredItems[this._selectedIndexInFiltered] : null;
|
| + var selectedIndex = this._shouldShowMatchingItems() && this._selectedIndexInFiltered < this._filteredItems.length ? this._filteredItems[this._selectedIndexInFiltered] : null;
|
| this._delegate.selectItem(selectedIndex, this._promptElement.value.trim());
|
| },
|
|
|
|
|