I am not sure if this is a bug, or intended. But when I am hovering on an element and it becomes conditionally hidden, if it later becomes unhidden, it keeps the styling from the hover state, even if its no longer being hovered.
In a way it feels like for an object to lose the hover state, the mouse needs to exit the border of the element while its still visible. If that’s the case, that feels like a bug.
Does anyone know how to account for this and get rid of a hover state when an element is hidden?