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

@ -3327,8 +3327,11 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext
id: "search", id: "search",
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()
{
if(this.value !== this.nextmatch.activeFilters.search)
{ {
self.nextmatch.applyFilters({search: this.get_value()}); self.nextmatch.applyFilters({search: this.get_value()});
}
}, },
value: settings.search || '', value: settings.search || '',
fix: !egwIsMobile(), fix: !egwIsMobile(),