Skip to content

Commit

Permalink
Feed 'disabled' prop through to MathInput
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinb-khan committed Oct 20, 2024
1 parent b2149d3 commit 0b4334e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/perseus/src/widgets/expression/expression.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export type Props = ExternalProps &
visibleLabel: PerseusExpressionWidgetOptions["visibleLabel"];
ariaLabel: PerseusExpressionWidgetOptions["ariaLabel"];
value: string;
disabled?: boolean;
};

export type ExpressionState = {
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 0b4334e

Please sign in to comment.