]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Fix regression for handling `mouseenter`/`mouseleave` events introduced by #33310...
authoralpadev <2838324+alpadev@users.noreply.github.com>
Mon, 19 Apr 2021 05:30:33 +0000 (07:30 +0200)
committerGitHub <noreply@github.com>
Mon, 19 Apr 2021 05:30:33 +0000 (08:30 +0300)
commitd67121db28595d3c73da3128615142b2496f2af6
tree2cc81e9908210c76157282692b1b77e33d7dbcd4
parenta9d7a62658c5d93dcba5ed5fc47d84f3ddd3e0a3
Fix regression for handling `mouseenter`/`mouseleave` events introduced by #33310 (#33679)

* test: update spec for sibling adjacent mouseenter/mouseleave events

there is a regression introduced by #33310 - this would have catched that

* fix: fixup regression for mouseenter/mouseleave events introduced by #33310

the old logic only worked for parent-child movement since it checked for the relatedTarget to contain the delegateTarget - this should be fixed with this

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
js/src/dom/event-handler.js
js/tests/unit/dom/event-handler.spec.js