Closed Xiaokang2022 closed 2 weeks ago
1.6.0
9.5.31
3.12.0
5.3.0
The way I added sorting to the table is what the documentation mentioned: https://squidfunk.github.io/mkdocs-material/reference/data-tables/#sortable-tables
When I use the following code to create a table, a bug occurs:
| Id | Value | | --- | --------------- | | 1 | A { title="A" } | | 2 | B | | 3 | C | | 4 | D | | 5 | E |
Before sorting, the position of this tooltip ("A") is correct:
"A"
But after sorting, this tooltip is misplaced:
It was only when I re-scrolled the page that it came back to the correct place.
9.5.31-bug.zip
Edge
Thanks for reporting. We'll look into it.
Fixed in e5c9575dd. Here's what happened and how it's fixed:
https://github.com/squidfunk/mkdocs-material/blob/e5c9575dda8b4e8b689efffda2690f5925ae7919/src/templates/assets/javascripts/components/tooltip2/index.ts#L138-L148
We'll leave it open until released.
Released as part of 9.5.33.
Context
1.6.0
9.5.31
3.12.0
5.3.0
Bug description
The way I added sorting to the table is what the documentation mentioned: https://squidfunk.github.io/mkdocs-material/reference/data-tables/#sortable-tables
When I use the following code to create a table, a bug occurs:
Before sorting, the position of this tooltip (
"A"
) is correct:But after sorting, this tooltip is misplaced:
It was only when I re-scrolled the page that it came back to the correct place.
Related links
Reproduction
9.5.31-bug.zip
Steps to reproduce
Browser
Edge
Before submitting