From 2207377bd444f46fa64a4f741bc047b69edf12a9 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 16 Nov 2023 13:46:30 -0700 Subject: [PATCH] Revert "Et2Select: Even better handling of false invalid value", it was too strict leaving blanks instead of emptyLabel This reverts commit 7db80d066fc872db3cf966dd9c4dedeb3d391a2d. --- 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 b0b1b258c3..30dcfcb389 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 === '' || Array.isArray(this.value) && this.value.length == 0) && (this.emptyLabel || this.placeholder)) + if((this.value == '' || this.value == []) && (this.emptyLabel || this.placeholder)) { return; }