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

[popup,stepper] 两个组件同时使用是,stepper总是自动聚焦 #2142

Closed
csshjh opened this issue Jun 29, 2023 · 11 comments · Fixed by #2209
Closed

[popup,stepper] 两个组件同时使用是,stepper总是自动聚焦 #2142

csshjh opened this issue Jun 29, 2023 · 11 comments · Fixed by #2209
Labels
bug Something isn't working help wanted Extra attention is needed middle middle level of difficulties

Comments

@csshjh
Copy link

csshjh commented Jun 29, 2023

tdesign-miniprogram 版本

1.1.10

重现链接

No response

重现步骤

No response

期望结果

不想让stepper的input自动聚焦

实际结果

No response

基础库版本

No response

补充说明

No response

IssueShoot

  • 预估时长: 3
  • 期望完成时间: 2023-07-17 00:00:00 +0000 UTC
  • 开发难度: 中
  • 参与人数: 1
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
@github-actions
Copy link
Contributor

👋 @csshjh,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@LeeJim
Copy link
Collaborator

LeeJim commented Jun 30, 2023

没懂你的问题,可以补充下代码和场景吗

@LeeJim LeeJim added the question This is a question, not a bug label Jun 30, 2023
@csshjh
Copy link
Author

csshjh commented Jul 3, 2023

sdsddfssdfsdf

当我执行addCartHandle这个事件时,popup弹出来的时候,stepper里面的input输入框,光标会自动聚焦,导致手机上输入数字的软键盘会自动弹出来,我想实现的是,popup弹出来的时候,光标不自动聚焦到stepper里面,当我手动点击stepper的时候,软键盘再出来

@LeeJim
Copy link
Collaborator

LeeJim commented Jul 3, 2023

我这边按你说的试了一下,并不会出现。
还需要提供更多信息,你的机型和系统版本,以及代码

@csshjh
Copy link
Author

csshjh commented Jul 3, 2023

sdsddfssdfsdf

```````js``````
addCartHandle(){
this.setData({
visible:true
})
},

当我执行addCartHandle这个事件时,popup弹出来的时候,stepper里面的input输入框,光标会自动聚焦,导致手机上输入数字的软键盘会自动弹出来,我想实现的是,popup弹出来的时候,光标不自动聚焦到stepper里面,当我手动点击stepper的时候,软键盘再出来

@feng520ckx
Copy link

这个问题好像跟 #2026 是一个问题

@csshjh
Copy link
Author

csshjh commented Jul 3, 2023

我这边按你说的试了一下,并不会出现。 还需要提供更多信息,你的机型和系统版本,以及代码

我用的是安卓系统,红米手机,麻烦用安卓系统的手机测试下,如下图:光标一直在stepper框里面闪,底下的数字键盘自动就弹出来了。点击“+”或者“-”的时候,点第一下,stepper里面的数字并不会变,点第二下的时候才会更改数量
image
image

@Markniconico
Copy link

我也遇到这个问题,小米13,t-popup组件内部只要包含input(包括原生组件),就会自动聚焦。不知道是t-popup的问题还是input组件在小米手机上的Bug.

@LeeJim LeeJim added bug Something isn't working help wanted Extra attention is needed middle middle level of difficulties and removed question This is a question, not a bug labels Jul 10, 2023
@github-actions
Copy link
Contributor

任何人都可以处理此问题。
请务必在您的 pull request 中引用此问题。
感谢你的贡献! ✨

@LeeJim
Copy link
Collaborator

LeeJim commented Jul 14, 2023

已经确认问题所在,正在处理

@Doriathrin
Copy link

已经确认问题所在,正在处理

哈喽,这个您这边解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed middle middle level of difficulties
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants