Hover Styling and Conditional Visibility

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?

Could you create a bug ticket on support.weweb.io ? We’ll fix this.

My gut feeling is that the hover state is still true when the element becomes hidden. We’ll fix this by reverting this state when hidden then.

1 Like