fix searching the second time in quick search, #1694

This commit is contained in:
zadam 2021-02-26 23:20:49 +01:00
parent 19821b634f
commit d476dfc53b

View File

@ -49,7 +49,11 @@ export default class QuickSearchWidget extends BasicWidget {
this.$widget.find('.input-group-append').on('shown.bs.dropdown', () => this.search());
utils.bindElShortcut(this.$searchString, 'return', () => {
this.$dropdownToggle.dropdown('show');
if (this.$dropdownMenu.is(":visible")) {
this.search(); // just update already visible dropdown
} else {
this.$dropdownToggle.dropdown('show');
}
this.$searchString.focus();
});