Et2Select: Fix placeholder could not be shown

This commit is contained in:
nathan 2023-10-25 10:11:44 -06:00
parent f6e6b7dc38
commit 4a48fc74c7

View File

@ -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;
}