From b2e1cef233373230809a8a4577dad2c62ef76168 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 3 Aug 2023 14:05:10 -0600 Subject: [PATCH] SearchMixin: If the value is changed while the search / options are open, recalculate positioning Fixes bug where it looks like the value hasn't changed, until the dropdown closes. --- api/js/etemplate/Et2Select/SearchMixin.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/js/etemplate/Et2Select/SearchMixin.ts b/api/js/etemplate/Et2Select/SearchMixin.ts index 1cb3ccab99..e3990b2fc9 100644 --- a/api/js/etemplate/Et2Select/SearchMixin.ts +++ b/api/js/etemplate/Et2Select/SearchMixin.ts @@ -600,6 +600,12 @@ export const Et2WithSearchMixin = >(superclass { return; } + + // If widget is currently open, we may need to re-calculate search / dropdown positioning + if(this.isOpen) + { + this.handleMenuShow(); + } } /**