File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import { Nullish } from '@table-library/react-table-library/types/common';
10
10
const getBaseStyle = ( ) => `
11
11
display: contents;
12
12
13
+ &.disabled td {
14
+ cursor: auto;
15
+ }
16
+
13
17
${ ( ) => {
14
18
/* #1 */
15
19
// otherwise tree + resize would have overflow icons */
Original file line number Diff line number Diff line change @@ -98,11 +98,17 @@ export const Row = <T extends TableNode>(props: RowProps<T>) => {
98
98
99
99
useDoubleClick < T > ( ref , onClickByFeature , onDoubleClick , item ) ;
100
100
101
+ const handleClick = disabled
102
+ ? ( ) => { }
103
+ : onDoubleClick
104
+ ? ( ) => { }
105
+ : ( event : Event ) => onClickByFeature ( item , event ) ;
106
+
101
107
return (
102
108
< RowContainer
103
109
role = "row"
104
110
data-table-library_tr-body = ""
105
- onClick = { onDoubleClick ? ( ) => { } : ( event : Event ) => onClickByFeature ( item , event ) }
111
+ onClick = { handleClick }
106
112
css = { css `
107
113
${ themeByFeature }
108
114
${ theme ?. BaseRow }
You can’t perform that action at this time.
0 commit comments