onMouseOut method
Implementation
@HostListener('mouseout')
void onMouseOut(MouseEvent event) {
// If not triggered by mouse movement, don't handle it. This can happen when
// the DOM moved but mouse didn't.
if (!_isMouseDriven) return;
MenuItem? item = _itemForTarget(event.target);
if (item == null) return;
if (item == _hoveredItem) {
_hoveredItem = null;
}
_subMenuOpener?.cancel();
}