Skip to content

nuxt3中使用select多选框,点击选项有js报错 #7362

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

Closed
1 task
robertyclin opened this issue Feb 21, 2024 · 5 comments · Fixed by #7377
Closed
1 task

nuxt3中使用select多选框,点击选项有js报错 #7362

robertyclin opened this issue Feb 21, 2024 · 5 comments · Fixed by #7377
Labels

Comments

@robertyclin
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.1.0

Environment

nuxt3.10.2, vue3.4.19,chrome119

Reproduction link

https://antdv.com/docs/vue/introduce-cn

Steps to reproduce

app.vue页面里面直接复制一份官网的demo例子,点击选项就报错了,弹窗也关闭不了,非nuxt项目虽然有报错,但是能正常选中

<script lang="ts" setup> import { ref } from 'vue'; const handleChange = (value: string[]) => { console.log(`selected ${value}`); }; const value = ref(['a1', 'b2']); </script>

What is expected?

能正常选中和关闭弹窗

What is actually happening?

报错

@trylovetom
Copy link

trylovetom commented Feb 21, 2024

same here vueComponent/ant-design-vue-nuxt#41, this is a reproduction

Kapture.2024-02-20.at.19.17.28.mp4

@ankeycheng
Copy link

ankeycheng commented Feb 21, 2024

cascader 组件也出现了相似的问题 #7321

@YvesChen
Copy link

YvesChen commented Mar 5, 2024

bug挺致命的,请问题主解决了吗,😢有解决方案吗?
image

@kasuie
Copy link

kasuie commented Mar 8, 2024

bug挺致命的,请问题主解决了吗,😢有解决方案吗? image

可以看看这里的方法:vueComponent/ant-design-vue-nuxt#41 (comment)

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants