We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02d516f commit 15586b4Copy full SHA for 15586b4
1 file changed
packages/ra-core/src/form/useInput.ts
@@ -23,7 +23,9 @@ const defaultFormat = (value: any) => (value == null ? '' : value);
23
// parse empty string into null as it's more suitable for a majority of backends
24
const defaultParse = (value: string) => (value === '' ? null : value);
25
26
-export const useInput = (props: InputProps): UseInputValue => {
+export const useInput = <ValueType = any>(
27
+ props: InputProps<ValueType>
28
+): UseInputValue => {
29
const {
30
defaultValue,
31
format = defaultFormat,
0 commit comments