marko-js / marko

A declarative, HTML-based language that makes building web apps fun
https://markojs.com/
MIT License
13.36k stars 643 forks source link

mouseenter and mouseleave seem to bubble #1780

Closed tws2000 closed 2 years ago

tws2000 commented 2 years ago

Marko Version: 5.18.2

Details

When mouseenter and mouseleave are attached to an element, they seem to be firing when the mouse moves over child elements.

Expected Behavior

mouseenter and mouseleave do not fire when mouse moves over child elements.

Actual Behavior

mouseenter and mouseleave are firing when mouse moves over child elements.

Your Environment

Steps to Reproduce

Marko playground example: https://markojs.com/playground/#NobwRAdghgtgpmAXGAlhAJnAHgOhlAJwGsB7MAGjAAcoAXACyTAHo1Nd9izKBjEiWnAFMeAGygBnCQAIQAHQjTptEgHNVouAGESokgQAUASlkKl5vhAm1pcUdIC8y+igk5VcWgFFRBgOTwEACufkYA3GbmtqI4YpISADKutDgq6pr+fHoEoRGK0gC+CkUQCgA86CgAbpFxUg5yYIFBjZFEcACeDU1CLWCR-AC0MCRBEnBCgoaNaRrauvqNRgMQw6PjdnBQVXAGM2pzOtlLAHwKkRXVJ2VQ0vQEcABm3QDEjScAEnZ6ZcxQ18xKlUzvlLsCbncHs9Gm8wCcAOr6UToX7-X5AkHoq7nCBlawdTQgvC9Uz5ABGUB4RFUBFGGEGWX0iGkLx4bLySho6EqEFUzIAzAAGKhYPIlYnBaQnaRA0lKSoSKjiDrMtCiNBwQZkvRUjnSLk8vnSACMwtFkU4qjQzNNIr1ZP0mAINpF0gkuhQ6DFCliCwIcukFKpNLp6AZfuZDy9xXKzHxhLABQAukA

DylanPiercey commented 2 years ago

Fix released in marko@5.20.1