@@ -45,15 +45,15 @@ export interface DropZoneRenderProps {
4545 * Whether the dropzone is disabled.
4646 * @selector [data-disabled]
4747 */
48- isDisabled ? : boolean
48+ isDisabled : boolean
4949}
5050
5151export interface DropZoneProps extends Omit < DropOptions , 'getDropOperationForPoint' | 'ref' | 'hasDropButton' > , HoverEvents , RenderProps < DropZoneRenderProps > , SlotProps , AriaLabelingProps { }
5252
5353export const DropZoneContext = createContext < ContextValue < DropZoneProps , HTMLDivElement > > ( null ) ;
5454
5555function DropZone ( props : DropZoneProps , ref : ForwardedRef < HTMLDivElement > ) {
56- let { isDisabled} = props ;
56+ let { isDisabled = false } = props ;
5757 [ props , ref ] = useContextProps ( props , ref , DropZoneContext ) ;
5858 let dropzoneRef = useObjectRef ( ref ) ;
5959 let buttonRef = useRef < HTMLButtonElement > ( null ) ;
@@ -83,7 +83,7 @@ function DropZone(props: DropZoneProps, ref: ForwardedRef<HTMLDivElement>) {
8383
8484 let renderProps = useRenderProps ( {
8585 ...props ,
86- values : { isHovered, isFocused, isFocusVisible, isDropTarget} ,
86+ values : { isHovered, isFocused, isFocusVisible, isDropTarget, isDisabled } ,
8787 defaultClassName : 'react-aria-DropZone'
8888 } ) ;
8989 let DOMProps = filterDOMProps ( props ) ;
0 commit comments