From 12ef8163b478f6923f1cf795558e80639d476f6c Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 26 Aug 2022 13:23:36 -0600 Subject: [PATCH] Fix double nextmatch refresh if you search, press [Enter], then take focus out of the search --- api/js/etemplate/et2_extension_nextmatch.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index cd5c06a941..6be7604a23 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -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, 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 || '', fix: !egwIsMobile(),