1how to prevent event button click capturing to tag/div/icon
2easiest way OPTION 1 with CSS:
3button > * {
4 pointer-events: none;
5}
6
7OPTION 2 with javascript:
8use e.currentTarget.children ;
9
10OPTION 3 with Javascript:
11use e.target.closest('selector') to locate the child, not e.currentTarget;
12
13