Skip to content

Commit

Permalink
fix: show focus ring when table row is focused in read mode (#1303)
Browse files Browse the repository at this point in the history
* fix: show focus ring when table row is focused in read mode

* Create witty-trees-buy.md
  • Loading branch information
jguddas authored Aug 26, 2023
1 parent 27bde30 commit 290cce1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/witty-trees-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/table": patch
---

fix: show focus ring when table row is focused in read mode
3 changes: 2 additions & 1 deletion packages/components/table/src/table-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ const TableRow = forwardRef<"tr", TableRowProps>((props, ref) => {
data-selected={dataAttr(isSelected)}
{...mergeProps(
rowProps,
isSelectable ? {...hoverProps, ...focusProps} : {},
focusProps,
isSelectable ? hoverProps : {},
filterDOMProps(node.props, {
enabled: shouldFilterDOMProps,
}),
Expand Down

2 comments on commit 290cce1

@vercel
Copy link

@vercel vercel bot commented on 290cce1 Aug 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 290cce1 Aug 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.