I am listening on scroll event on div (let's name it scroll_div) that contains textarea.
In given scenario (the scenario is not important) I do "e.preventDefault()" when scrolling.
When the e.target is the textarea, I don't want to prevent the scroll inside the textarea... Only to preven default on scroll_div.
I tried:
if(e.target.type !== "textarea") {
this.preventDefault(e);//Don't scroll
} else {
this.stopPropagation(e);
}
But when I do it - the body is scrolling (and I don't want it to happened)
Suggestions?