Don't validate inputs that are disabled, in addition to readonly

This commit is contained in:
nathan 2023-04-17 14:47:06 -06:00
parent 358cc70d66
commit 5358bb5f6f

View File

@ -516,7 +516,7 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
*/
async validate(skipManual = false)
{
if(this.readonly)
if(this.readonly || this.disabled)
{
// Don't validate if the widget is read-only, there's nothing the user can do about it
return Promise.resolve();