Skip to content

Commit

Permalink
fix(form-core): check for nullability for disabled prop
Browse files Browse the repository at this point in the history
  • Loading branch information
hardikpthv committed Nov 4, 2024
1 parent a0fd6cb commit 6e8aae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/components/form-core/src/FormControlMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 6e8aae6

Please sign in to comment.