Skip to content

Commit 6a04889

Browse files
committed
fix: delete key not working in quick open filed
1 parent 90c1530 commit 6a04889

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/search/QuickSearchField.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ define(function (require, exports, module) {
164164
if (this.options.onDelete && this._$dropdown && this._highlightIndex !== null) {
165165
this.options.onDelete(this._highlightIndex);
166166
this.updateResults();
167+
event.stopPropagation();
168+
event.preventDefault();
167169
}
168-
event.stopPropagation();
169-
event.preventDefault(); // treated as Home key otherwise
170170
} else if (event.keyCode === KeyEvent.DOM_VK_DOWN) {
171171
// Highlight changes are always done synchronously on the currently shown result list. If the list
172172
// later changes, the highlight is reset to the top

0 commit comments

Comments
 (0)