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

当使用 on-mask-click 尝试关闭modal,此时打开两个modal的话会一起关闭 #3147

Closed
Jedwuu opened this issue Jun 21, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Jedwuu
Copy link

Jedwuu commented Jun 21, 2022

TuSimple/naive-ui version (版本)

2.30.2

Vue version (Vue 版本)

3.2.33

Browser and its version (浏览器及其版本)

Chrome(102.0.5005.63)

System and its version (系统及其版本)

Win10(1903)

Node version (Node 版本)

14.4.0

Reappearance link (重现链接)

https://codesandbox.io/s/blue-pine-lism2s?file=/src/App.vue

Reappearance steps (重现步骤)

打开一个modal,再打开一个modal,使用 on-mask-click 触发关闭第二个 modal,此时会导致两个打开的modal一起关闭。

Expected results (期望的结果)

点击mask先只关闭第二个modal

Actual results (实际的结果)

点击mask会同时关闭两个modal

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Jun 21, 2022
@07akioni 07akioni added bug Something isn't working and removed untriaged need to sort labels Jun 21, 2022
07akioni added a commit that referenced this issue Jun 21, 2022
…click` will be triggered on every modal even only one mask is clicked #3147
@07akioni
Copy link
Collaborator

closed in ac37052

Keekuun pushed a commit to Keekuun/naive-ui that referenced this issue Jun 22, 2022
…click` will be triggered on every modal even only one mask is clicked tusen-ai#3147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants