document.addEventListener('click', function (event) {
if (
event.target && event.target.nodeName === 'I') {
// console.log(event.currentTarget)
// console.log(app)
console.log('1');
}
if (event.target.className === 'btn__modal create') {
}
if (event.target.className === 'btn__modal close') {
}
})
Почему в консоле еденица 2 раза? как остановить всплытие?