Skip to content
New issue

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

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

Already on GitHub? # to your account

NDropdown component @update:show method fires twice #2905

Closed
LinYu520312 opened this issue May 9, 2022 · 0 comments
Closed

NDropdown component @update:show method fires twice #2905

LinYu520312 opened this issue May 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@LinYu520312
Copy link

TuSimple/naive-ui version (版本)

2.28.2

Vue version (Vue 版本)

3.2.33

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

96.0.4664.110

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

Windows 10 Pro

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/staging-cookies-fehfwp?file=/src/Demo.vue

Reappearance steps (重现步骤)

Introduce the NDropdown component and call the @update:show callback method
引入NDropdown组件,调用@update:show回调方法

Expected results (期望的结果)

@update:show is triggered once when open, and once when closed
@update:show 打开触发一次,关闭触发一次

Actual results (实际的结果)

Open triggers twice, close triggers twice
打开触发两次,关闭触发两次

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label May 9, 2022
@Sepush Sepush added bug Something isn't working and removed untriaged need to sort labels May 9, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants