diff --git a/packages/ra-core/src/form/useInput.spec.tsx b/packages/ra-core/src/form/useInput.spec.tsx index fafc8f92a7..b0f04977c1 100644 --- a/packages/ra-core/src/form/useInput.spec.tsx +++ b/packages/ra-core/src/form/useInput.spec.tsx @@ -64,6 +64,43 @@ describe('useInput', () => { expect(inputProps.meta).toBeDefined(); }); + it('allows to override the value of enhanced input', () => { + let inputProps; + const enhancedInput: any = { + id: 'parent', + name: 'title', + isRequired: true, + }; + const meta = { + touched: false, + }; + render( +