From 5358bb5f6fd521762f5b545a736f58a1f3e680d4 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 17 Apr 2023 14:47:06 -0600 Subject: [PATCH] Don't validate inputs that are disabled, in addition to readonly --- api/js/etemplate/Et2InputWidget/Et2InputWidget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts b/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts index 6949425432..0a2c78219a 100644 --- a/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts +++ b/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts @@ -516,7 +516,7 @@ const Et2InputWidgetMixin = >(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();