diff --git a/packages/react-aria-components/src/DropZone.tsx b/packages/react-aria-components/src/DropZone.tsx index a1404c947c4..72faacab914 100644 --- a/packages/react-aria-components/src/DropZone.tsx +++ b/packages/react-aria-components/src/DropZone.tsx @@ -91,7 +91,12 @@ function DropZone(props: DropZoneProps, ref: ForwardedRef) { {...renderProps} slot={props.slot || undefined} ref={ref} - onClick={() => buttonRef.current?.focus()} + onClick={(e) => { + let target = e.target as HTMLElement; + if (!target.matches('input')) { + buttonRef.current?.focus(); + } + }} data-hovered={isHovered || undefined} data-focused={isFocused || undefined} data-focus-visible={isFocusVisible || undefined}