Et2Select: Even better handling of false invalid value

This commit is contained in:
nathan 2023-11-16 13:33:05 -07:00
parent 2e2c3fb0b6
commit 7db80d066f

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