Et2Select: Even better handling of false invalid value

This commit is contained in:
nathan 2023-11-16 13:33:05 -07:00
parent b4e2524023
commit 25a823c05d

View File

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