File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
packages/ra-core/src/controller/input Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 66} from './useReferenceArrayInputController' ;
77import { ResourceContextProvider } from '../../core/ResourceContextProvider' ;
88import { ChoicesContextProvider } from '../../form/choices/ChoicesContextProvider' ;
9+ import { ChoicesContextValue } from '../../form/choices/ChoicesContext' ;
910import { RaRecord } from '../../types' ;
10- import { ChoicesContextValue } from '../../form' ;
1111
1212/**
1313 * An Input component for fields containing a list of references to another resource.
Original file line number Diff line number Diff line change 1- import React , { ReactNode } from 'react' ;
1+ import React , { type ReactNode } from 'react' ;
22
33import { ResourceContextProvider } from '../../core' ;
4- import { ChoicesContextProvider , InputProps } from '../../form' ;
4+ import type { InputProps } from '../../form/useInput' ;
5+ import { ChoicesContextProvider } from '../../form/choices/ChoicesContextProvider' ;
56import {
6- UseReferenceInputControllerParams ,
7+ type UseReferenceInputControllerParams ,
78 useReferenceInputController ,
89} from './useReferenceInputController' ;
910
@@ -67,10 +68,10 @@ import {
6768export const ReferenceInputBase = ( props : ReferenceInputBaseProps ) => {
6869 const {
6970 children,
70- reference,
71- sort = { field : 'id' , order : 'DESC' } ,
7271 filter = { } ,
7372 offline,
73+ reference,
74+ sort = { field : 'id' , order : 'DESC' } ,
7475 } = props ;
7576
7677 const controllerProps = useReferenceInputController ( {
You can’t perform that action at this time.
0 commit comments