Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Extension manager now scrolls to top when search filters are added/removed #11700

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/extensibility/ExtensionManagerDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ define(function (require, exports, module) {
$search.val("");
views.forEach(function (view, index) {
view.filter("");
$(".modal-body", $dlg).scrollTop(0);
});

if (!updateSearchDisabled()) {
Expand Down Expand Up @@ -456,7 +457,9 @@ define(function (require, exports, module) {
var query = $(this).val();
views.forEach(function (view) {
view.filter(query);
$(".modal-body", $dlg).scrollTop(0);
});

}).on("click", ".search-clear", clearSearch);

// Disable the search field when there are no items in the model
Expand Down