Blazor阻止冒泡传播

在你的组件的外面套上一个div,并添加@onclick:stopPropagation="true"

<div @onclick:stopPropagation="true">
//add your code
</div>

参考文献

https://lebang2020.cn/details/211018ajugho41.html

posted @ 2022-10-22 23:26  Yu-Core  阅读(191)  评论(0编辑  收藏  举报