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

紧急:select组件,在dropdownRender里加了一个input组件,input退格时,select多选的内容会跟随退格 #7299

Closed
1 task
yajzhang1 opened this issue Jan 19, 2024 · 9 comments
Labels
🤔 Need Reproduce We cannot reproduce your problem Stale

Comments

@yajzhang1
Copy link

ME1705635716374.mp4
  • 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撤销了

@cc-hearts
Copy link
Contributor

需要提供一下复现的代码

@aibayanyu20 aibayanyu20 added the 🤔 Need Reproduce We cannot reproduce your problem label Jan 21, 2024
Copy link

Hello @yajzhang1. Please provide a online reproduction by forking this link for vue2link for vue3 or a minimal GitHub repository. Make sure to choose the correct version.

你好 @yajzhang1, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 for vue2此处 for vue3 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。

@yajzhang1
Copy link
Author

Hello @yajzhang1. Please provide a online reproduction by forking this link for vue2link 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

构建了一个在线实例,辛苦看下

@cc-hearts
Copy link
Contributor

提供的代码并没有复现出这个问题🤔
sandbox

@yajzhang1
Copy link
Author

提供的代码并没有复现出这个问题🤔 sandbox

有呢有呢,一按回车,选中的就消失了

@tiansQAQ
Copy link

提供的代码并没有复现出这个问题🤔 sandbox

有呢有呢,一按回车,选中的就消失了

当选中下拉列表的一个元素的时候,会有一个灰色的高亮效果。这个是个回车的快捷键,进行选中和取消选中。

@jack-7788
Copy link

Snipaste_2024-01-29_10-37-36 取消回车键的默认行为

@aShu-guo
Copy link
Contributor

aShu-guo commented Mar 5, 2024

正如@tiansQAQ 说的那样,回车键的效果等同于click。你可以测试将鼠标放在下拉框的选项上,此时不要点击,触发回车键则会选中当前选项,再次触发则会取消。

Copy link

github-actions bot commented May 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 Need Reproduce We cannot reproduce your problem Stale
Projects
None yet
Development

No branches or pull requests

6 participants