var productMenuList = document.querySelector('.product-menu__list');
productMenuList.onmouseover = evt => {
var childrenUl = evt.target.querySelector('ul')
console.log(childrenUl)
console.log(evt.target)
if (childrenUl) {
$el = [...childrenUl.children].pop().classList.contains('show');
if (childrenUl.children.length > 3 && !$el) {
var newButtonDown = document.createElement('li');
newButtonDown.innerHTML = '<a href="#" class=\"dropdown-menu__item-link\"> Показать еще </a>';
newButtonDown.className = "dropdown-menu__item show dropdown-menu__item--grey without-dropdown";
childrenUl.append(newButtonDown);
console.log(newButtonDown)
}
}
};
console.log(evt.target)
console.log(childrenUl)