From 4a48fc74c7c7fa08abd88c3f48bf3cd668fc7587 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 25 Oct 2023 10:11:44 -0600 Subject: [PATCH] Et2Select: Fix placeholder could not be shown --- 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 1b32d59117..bf0f347e71 100644 --- a/api/js/etemplate/Et2Select/Et2Select.ts +++ b/api/js/etemplate/Et2Select/Et2Select.ts @@ -322,7 +322,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect) } // emptyLabel is fine - if(this.value === "" && this.emptyLabel) + if(!(this.value) && this.value !== '0' && (this.emptyLabel || this.placeholder)) { return; }