Fix hover attribute clearing logic in ZenCompactMode

This commit is contained in:
mr. m
2025-03-11 08:00:59 +01:00
committed by Slowlife01
parent 759061ffdb
commit 1d03c01420

View File

@@ -458,7 +458,7 @@ var gZenCompactModeManager = {
// Clear hover attributes from all hoverable elements
for (let entry of this.hoverableElements) {
const target = entry.element;
if (target) {
if (target && !target.matches(':hover') && target.hasAttribute('zen-has-hover')) {
target.removeAttribute('zen-has-hover');
this.clearFlashTimeout('has-hover' + target.id);
}