From 88087c3b4c405dc48e8cdf9731b1b55b0dcd07f9 Mon Sep 17 00:00:00 2001 From: djhi Date: Fri, 16 Aug 2019 18:40:38 +0200 Subject: [PATCH] Review --- packages/ra-ui-materialui/src/input/NumberInput.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/ra-ui-materialui/src/input/NumberInput.tsx b/packages/ra-ui-materialui/src/input/NumberInput.tsx index 4faf0421c81..cd9542f2940 100644 --- a/packages/ra-ui-materialui/src/input/NumberInput.tsx +++ b/packages/ra-ui-materialui/src/input/NumberInput.tsx @@ -12,6 +12,10 @@ const parse = value => { return isNaN(float) ? null : float; }; +interface Props { + step: string | number; +} + /** * An Input component for a number * @@ -25,7 +29,9 @@ const parse = value => { * The object passed as `options` props is passed to the material-ui component */ const NumberInput: FunctionComponent< - InputProps & Omit + Props & + InputProps & + Omit > = ({ helperText, label,