Skip to content

Commit

Permalink
Bringing 'er around again
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicScrewdriver committed Oct 9, 2024
1 parent 6b2f8e5 commit a59be5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/perseus-editor/src/widgets/input-number-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class InputNumberEditor extends React.Component<Props> {
value={this.props.simplify}
onChange={(e) => {
this.props.onChange({
// @ts-expect-error - TS2322 - Type 'string' is not assignable to type '"optional" | "required" | "enforced" | undefined'.
simplify: e.target.value,
});
}}
Expand Down Expand Up @@ -230,6 +231,7 @@ class InputNumberEditor extends React.Component<Props> {
<select
value={this.props.answerType}
onChange={(e) => {
// @ts-expect-error - TS2322 - Type 'string' is not assignable to type '"number" | "integer" | "mixed" | "decimal" | "improper" | "percent" | "pi" | "rational" | undefined'.
this.props.onChange({answerType: e.target.value});
}}
aria-label="Answer type"
Expand All @@ -247,10 +249,11 @@ class InputNumberEditor extends React.Component<Props> {

<div>
<label>
Width
Width{" "}
<select
value={this.props.size}
onChange={(e) => {
// @ts-expect-error - TS2322 - Type 'string' is not assignable to type '"small" | "normal" | undefined'.
this.props.onChange({size: e.target.value});
}}
>
Expand Down

0 comments on commit a59be5f

Please sign in to comment.