Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] mt-cell嵌套mt-switch,switch点击会先调用cell的click事件 #1594

Open
Banjiemin opened this issue Aug 28, 2019 · 0 comments

Comments

@Banjiemin
Copy link

Mint UI version

2.2.13

OS/Browsers version

chrom最新版

Vue version

2.6.10

Reproduction Link

https://codepen.io/banjiemin/pen/oNvWREZ

Steps to reproduce

1,mt-cell mt-button, 点击button执行func(0), 点击cell执行 func(2) ,这里很正常;
2,mt-cell mt-switch, 点击switch执行func(2) 两次,再执行func(0),
点击cell执行 func(2);

What is Expected?

子组件mt-switch能阻止事件冒泡到父组件上

What is actually happening?

先执行了父组件的click事件,并且是两次,然后才执行switch的change事件 。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant