ant-design-vue
ant-design-vue copied to clipboard
紧急:select组件,在dropdownRender里加了一个input组件,input退格时,select多选的内容会跟随退格
https://github.com/vueComponent/ant-design-vue/assets/156650796/cfc04de2-4881-4149-9c68-c5420858d6d1
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.0.7
Environment
mac, windows, chrome
Reproduction link
https://antdv.com/components/select-cn
Steps to reproduce
select组件,在dropdownRender里加了一个input组件,input退格时,select多选的内容会跟随退格
What is expected?
select多选内容不跟着撤销
What is actually happening?
跟随dropdownRender 的input撤销了
需要提供一下复现的代码
Hello @yajzhang1. Please provide a online reproduction by forking this link for vue2、 link for vue3 or a minimal GitHub repository. Make sure to choose the correct version.
你好 @yajzhang1, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 for vue2、 此处 for vue3 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。
Hello @yajzhang1. Please provide a online reproduction by forking this link for vue2、 link for vue3 or a minimal GitHub repository. Make sure to choose the correct version.
你好 @yajzhang1, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 for vue2、 此处 for vue3 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。
https://codesandbox.io/p/sandbox/distracted-mountain-m2zrf7?file=%2Fsrc%2Fcomponents%2FHelloWorld.vue%3A105%2C30
构建了一个在线实例,辛苦看下
提供的代码并没有复现出这个问题🤔 sandbox
正如@tiansQAQ 说的那样,回车键的效果等同于click。你可以测试将鼠标放在下拉框的选项上,此时不要点击,触发回车键则会选中当前选项,再次触发则会取消。
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days