Skip to content
Permalink
Browse files
TableSort: better support for thead [Closes #348]
  • Loading branch information
dg committed Apr 8, 2020
1 parent 286651e commit 193740e491428948eb70c568cace8995ea4261a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
@@ -2,11 +2,11 @@
* This file is part of the Tracy (https://tracy.nette.org)
*/

.tracy-sortable tr:first-child > * {
.tracy-sortable > :first-child > tr:first-child > * {
position: relative;
}

.tracy-sortable tr:first-child > *:hover:before {
.tracy-sortable > :first-child > tr:first-child > *:hover:before {
position: absolute;
right: .3em;
content: "\21C5";
@@ -11,7 +11,7 @@
{
static init() {
document.documentElement.addEventListener('click', (e) => {
if (e.target.matches('.tracy-sortable tr:first-child *')) {
if (e.target.matches('.tracy-sortable > :first-child > tr:first-child *')) {
TableSort.sort(e.target.closest('td,th'));
}
});

0 comments on commit 193740e

Please sign in to comment.