Skip to content

select组件使用 dropdownRender 对下拉菜单进行自由扩展添加input组件时,input无法聚焦输入 #2571

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
Ben-Ben-B opened this issue Jul 17, 2020 · 17 comments
Assignees

Comments

@Ben-Ben-B
Copy link

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

Version

undefined

Environment

Mac系统,Google Chrome版本83.0.4103.116,Vue 2.6.11

Reproduction link

Edit on CodeSandbox

Steps to reproduce

What is expected?

input输入框可以聚焦输入

What is actually happening?

input输入框无法聚焦输入

@AllenForward
Copy link

这个issue好像到现在还没修复.

@shiyuanzheng
Copy link

有什么解决方案吗

@shiyuanzheng
Copy link

@tangjinzhou 这个bug有在修复吗

@zhedream
Copy link

有什么解决方案吗

我也遇到了这个问题
加一个 click 事件, 手动 聚焦一下

<a-input
 v-model.trim="search_text"
  placeholder="请输入搜索关键字"
  style="width: 85%"
  @change="onSearch"
  @click="e=>e.target.focus()"
 />

@zkwolf zkwolf self-assigned this Jan 19, 2021
@github-actions
Copy link

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

@github-actions github-actions bot added the Stale label Mar 21, 2021
@xuhuanghuang
Copy link

这个bug 会修复吗

@xuhuanghuang
Copy link

有什么解决方案吗

我也遇到了这个问题
加一个 click 事件, 手动 聚焦一下

<a-input
 v-model.trim="search_text"
  placeholder="请输入搜索关键字"
  style="width: 85%"
  @change="onSearch"
  @click="e=>e.target.focus()"
 />

下拉面板会隐藏, 要手动控制面板

@github-actions github-actions bot removed the Stale label Mar 24, 2021
@github-actions
Copy link

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

@boluo-muma
Copy link

react版本同样有问题,啊哈哈...

@Robinbiao
Copy link

现在还没修复吗?

@joisun
Copy link

joisun commented Jan 17, 2022

类似的issue 问题都没有解决 全部被close 掉了

@tangjinzhou

@joisun
Copy link

joisun commented Jan 17, 2022

@Ben-Ben-B
请问 你这个问题解决了嘛

@Ben-Ben-B
Copy link
Author

@Ben-Ben-B 请问 你这个问题解决了嘛

没有,之前用e.stopPropagation(),禁止冒泡啥的,没用,还是有问题的,现在这个需求已经砍掉了,所以不管这个了 @jaycethanks

@joisun
Copy link

joisun commented Jan 17, 2022

哦哦

@yaowangmx
Copy link

有没有人解决了的呢?

@valsun2016
Copy link

this solution , hope to help you ~
换个思路,在关闭的时候,再重新打开(利用一个标记,重新设置下拉框的open属性即可),参考 https://blog.csdn.net/superYe7/article/details/114628003

@github-actions
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 Jun 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests