We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 286651e commit 193740eCopy full SHA for 193740e
src/Tracy/TableSort/table-sort.css
@@ -2,11 +2,11 @@
2
* This file is part of the Tracy (https://tracy.nette.org)
3
*/
4
5
-.tracy-sortable tr:first-child > * {
+.tracy-sortable > :first-child > tr:first-child > * {
6
position: relative;
7
}
8
9
-.tracy-sortable tr:first-child > *:hover:before {
+.tracy-sortable > :first-child > tr:first-child > *:hover:before {
10
position: absolute;
11
right: .3em;
12
content: "\21C5";
src/Tracy/TableSort/table-sort.js
@@ -11,7 +11,7 @@
{
static init() {
13
document.documentElement.addEventListener('click', (e) => {
14
- if (e.target.matches('.tracy-sortable tr:first-child *')) {
+ if (e.target.matches('.tracy-sortable > :first-child > tr:first-child *')) {
15
TableSort.sort(e.target.closest('td,th'));
16
17
});
0 commit comments