Browser: Chrome 110 OS: macOS / Windows / Linux / etc. URL: Link to a page that illustrates this issue Video: Short screen recording that illustrates this issue (free tool: jam.dev)
[Please describe this bug in as much detail as possible so we can replicate & debug this bug]
Bricks interactions, for the toggle attribute, I am using a class with a value (hover) - however unlike with JS, when you hover it adds the class, but when you hover away, it doesn’t remove the class until you hover back on it again. To my understanding this is toggling the attribute, but only on each positive hover interaction and not on the state? Perhaps that’s the intended behaviour though so far in the Interactions.
I think it works as expected for it toggles the attribute when you hover. Each time a new hover-event is fired, then it will toggle. In your usecase I think you have to use mouse-enter and mouse-leave and set / remove attribute.
We would need something like onHoverStateChanged to achieve what you want.
Yeah I can see your point, I mistakenly thought it was a native JS type functionality, which I achieve using the hover in Java and it does toggle it only during the hover state, and not need another hover to toggle off. But I get what you’re saying.