Skip to content

Commit b90cbf1

Browse files
authored
RAC: Fix Table column resize hover events (#5373)
1 parent b280240 commit b90cbf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-aria-components/src/Table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ function ColumnResizer(props: ColumnResizerProps, ref: ForwardedRef<HTMLDivEleme
976976
ref={objectRef}
977977
role="presentation"
978978
{...renderProps}
979-
{...mergeProps(resizerProps, {onPointerDown})}
979+
{...mergeProps(resizerProps, {onPointerDown}, hoverProps)}
980980
data-hovered={isHovered || undefined}
981981
data-focused={isFocused || undefined}
982982
data-focus-visible={isFocusVisible || undefined}
@@ -985,7 +985,7 @@ function ColumnResizer(props: ColumnResizerProps, ref: ForwardedRef<HTMLDivEleme
985985
{renderProps.children}
986986
<input
987987
ref={inputRef}
988-
{...mergeProps(inputProps, focusProps, hoverProps)} />
988+
{...mergeProps(inputProps, focusProps)} />
989989
{isResizing && isMouseDown && ReactDOM.createPortal(<div style={{position: 'fixed', top: 0, left: 0, bottom: 0, right: 0, cursor}} />, document.body)}
990990
</div>
991991
);

0 commit comments

Comments
 (0)