From 0b4334e145155d1f1c8298689f687df53a5dc8fc Mon Sep 17 00:00:00 2001 From: Kevin Barabash Date: Sun, 20 Oct 2024 12:38:09 -0400 Subject: [PATCH] Feed 'disabled' prop through to MathInput --- packages/perseus/src/widgets/expression/expression.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/perseus/src/widgets/expression/expression.tsx b/packages/perseus/src/widgets/expression/expression.tsx index 2292f223c0..dafc6db69d 100644 --- a/packages/perseus/src/widgets/expression/expression.tsx +++ b/packages/perseus/src/widgets/expression/expression.tsx @@ -81,6 +81,7 @@ export type Props = ExternalProps & visibleLabel: PerseusExpressionWidgetOptions["visibleLabel"]; ariaLabel: PerseusExpressionWidgetOptions["ariaLabel"]; value: string; + disabled?: boolean; }; export type ExpressionState = { @@ -384,6 +385,7 @@ export class Expression onChange={this.changeAndTrack} convertDotToTimes={this.props.times} buttonSets={this.props.buttonSets} + disabled={this.props.disabled} onFocus={this._handleFocus} onBlur={this._handleBlur} hasError={this.state.showErrorStyle}