Answers for "js click link with stop propagation"

0

js propagation stop

<div (click)="func($event)">
	<span>oi</span>
</div>

func(e?)
{
	if(e) e.stopPropagation();
}
Posted by: Guest on May-13-2020
0

html onclick stop propagation

// "event" is not universally supported, so instead grab the first
// argument passed through the onclick handler and call
// "stopPropagation()" on it
<div onclick="(arguments[0] ? arguments[0].stopPropagation() : false);">...</div>
Posted by: Guest on July-01-2020

Code answers related to "js click link with stop propagation"

Browse Popular Code Answers by Language