mirror of
https://github.com/gosticks/react-table.git
synced 2026-08-11 12:30:17 +00:00
Remove tooltip if columnDisableSortBy (#1685)
* Remove tooltip if columnDisableSortBy * update sorting test snapshot
This commit is contained in:
committed by
Tanner Linsley
parent
e5d672b9ea
commit
7169b3100b
@@ -5,7 +5,7 @@ Snapshot Diff:
|
||||
- First value
|
||||
+ Second value
|
||||
|
||||
@@ -22,11 +22,13 @@
|
||||
@@ -20,11 +20,13 @@
|
||||
colspan="1"
|
||||
style="cursor: pointer;"
|
||||
title="Toggle SortBy"
|
||||
@@ -20,7 +20,7 @@ Snapshot Diff:
|
||||
colspan="1"
|
||||
style="cursor: pointer;"
|
||||
title="Toggle SortBy"
|
||||
@@ -69,66 +71,66 @@
|
||||
@@ -67,66 +69,66 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -112,7 +112,7 @@ Snapshot Diff:
|
||||
- First value
|
||||
+ Second value
|
||||
|
||||
@@ -23,11 +23,11 @@
|
||||
@@ -21,11 +21,11 @@
|
||||
style="cursor: pointer;"
|
||||
title="Toggle SortBy"
|
||||
>
|
||||
@@ -125,7 +125,7 @@ Snapshot Diff:
|
||||
<th
|
||||
colspan="1"
|
||||
style="cursor: pointer;"
|
||||
@@ -71,26 +71,26 @@
|
||||
@@ -69,26 +69,26 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -158,7 +158,7 @@ Snapshot Diff:
|
||||
<tr>
|
||||
<td>
|
||||
firstName: joe
|
||||
@@ -111,26 +111,26 @@
|
||||
@@ -109,26 +109,26 @@
|
||||
progress: 10
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -233,7 +233,7 @@ function useInstance(instance) {
|
||||
style: {
|
||||
cursor: canSort ? 'pointer' : undefined,
|
||||
},
|
||||
title: 'Toggle SortBy',
|
||||
title: canSort ? 'Toggle SortBy' : undefined,
|
||||
},
|
||||
applyPropHooks(
|
||||
instanceRef.current.hooks.getSortByToggleProps,
|
||||
|
||||
Reference in New Issue
Block a user