reduce hover style map (#1634)
This commit is contained in:
@@ -2016,7 +2016,13 @@ function getHoverStylesMap() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
hoverMap.set(baseSelector, styles);
|
// only need the style which includes the cursor attribute.
|
||||||
|
for (const prop in styles) {
|
||||||
|
if (prop.includes("cursor")) {
|
||||||
|
hoverMap.set(baseSelector, styles);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user