javascript – Mouseleave affects children

The mouseleave event is firing on the arrow, I was using the mouseout, and they told me that I had to use the mouseleave and that it would solve the bubbling problem and that it would not happen again, I can not know what to do.

slide.forEach (slide => {
slide.addEventListener (& # 39; mouseleave & # 39 ;, function (e) {
rightArrow.classList.remove (& # 39; showRight & # 39;);
})
})