Fix double nextmatch refresh if you search, press [Enter], then take focus out of the search

This commit is contained in:
nathan 2022-08-26 13:23:36 -06:00
parent 234b2c78b9
commit 12ef8163b4

View File

@ -3328,7 +3328,10 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext
overlay: (typeof settings.searchbox != 'undefined' && typeof settings.searchbox.overlay != 'undefined') ? settings.searchbox.overlay : false, overlay: (typeof settings.searchbox != 'undefined' && typeof settings.searchbox.overlay != 'undefined') ? settings.searchbox.overlay : false,
onchange: function() onchange: function()
{ {
self.nextmatch.applyFilters({search: this.get_value()}); if(this.value !== this.nextmatch.activeFilters.search)
{
self.nextmatch.applyFilters({search: this.get_value()});
}
}, },
value: settings.search || '', value: settings.search || '',
fix: !egwIsMobile(), fix: !egwIsMobile(),