Revert "Et2Select: Even better handling of false invalid value", it was too strict leaving blanks instead of emptyLabel

This reverts commit 7db80d066f.
This commit is contained in:
nathan 2023-11-16 13:46:30 -07:00
parent 7db80d066f
commit 2b7f4ae5ee

View File

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