-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hovering over an empty DataTable row does not reset hover effect #2909
Comments
I thought this might be a quick fix, but I can't seem to unset the hover cursor similar to when focus leaves the widget. textual/src/textual/widgets/_data_table.py Lines 1979 to 1992 in 26573b9
A simple workaround would be to set the table height to auto and wrap it inside a container. |
I've been looking at this issue again as it feels like it should be such an easy fix. If the mouse isn't hovering a cell in the table, then there's no @darrenburns do you have any ideas? Sorry I normally wouldn't tag individuals, but it seems like you're the DataTable expert! |
I think you're looking at the correct code, but there looks like a cacheing bug too, which is preventing the update from being visible. The cell render cache key doesn't include Adding |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Have you checked closed issues? https://github.com/Textualize/textual/issues?q=is%3Aissue+is%3Aclosed
Yes, I have.
Please give a brief but clear explanation of the issue. If you can, include a complete working example that demonstrates the bug. Check it can run without modifications.
To reproduce the issue, run the below code and hover the cursor above one of the cells. Then, move the cursor down into the empty space below, and observe how the orange highlighting on the cell persists.
It will be helpful if you run the following command and paste the results:
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
Feel free to add screenshots and / or videos. These can be very helpful!
textual_datatable_cursor_hover.mp4
The text was updated successfully, but these errors were encountered: