From 6e8aae6f1a6ee91df42c3e62f62b4d0a2651f20c Mon Sep 17 00:00:00 2001 From: Hardik Pithva Date: Mon, 4 Nov 2024 14:25:42 +0100 Subject: [PATCH] fix(form-core): check for nullability for disabled prop --- packages/ui/components/form-core/src/FormControlMixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/components/form-core/src/FormControlMixin.js b/packages/ui/components/form-core/src/FormControlMixin.js index 93882ec24..9b66a5e10 100644 --- a/packages/ui/components/form-core/src/FormControlMixin.js +++ b/packages/ui/components/form-core/src/FormControlMixin.js @@ -274,7 +274,7 @@ const FormControlMixinImplementation = superclass => super.updated(changedProperties); if (changedProperties.has('disabled')) { - this._inputNode?.setAttribute('aria-disabled', this.disabled.toString()); + this._inputNode?.setAttribute('aria-disabled', (this.disabled || false).toString()); } if (changedProperties.has('_ariaLabelledNodes')) {