From 25a823c05de913eeaa9b53cea3c867cbbf5a237b Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 16 Nov 2023 13:33:05 -0700 Subject: [PATCH] Et2Select: Even better handling of false invalid value --- api/js/etemplate/Et2Select/Et2Select.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Select/Et2Select.ts b/api/js/etemplate/Et2Select/Et2Select.ts index 30dcfcb389..b0b1b258c3 100644 --- a/api/js/etemplate/Et2Select/Et2Select.ts +++ b/api/js/etemplate/Et2Select/Et2Select.ts @@ -327,7 +327,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect) } // emptyLabel is fine - if((this.value == '' || this.value == []) && (this.emptyLabel || this.placeholder)) + if((this.value === '' || Array.isArray(this.value) && this.value.length == 0) && (this.emptyLabel || this.placeholder)) { return; }