Skip to content

Commit

Permalink
render input as number for type number (#20637)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Reuter committed Jan 2, 2023
1 parent 1a237b7 commit 7033b1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const Control: React.FC<ControlProps> = ({ property, name, disabled, erro
/>
);
}
const inputType = property.type === "integer" ? "number" : "text";
const inputType = property.type === "integer" || property.type === "number" ? "number" : "text";

return (
<Input
Expand Down

0 comments on commit 7033b1e

Please sign in to comment.