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

textarea 聚焦光标问题 #5359

Open
mingsen-Luo opened this issue Mar 21, 2025 · 5 comments
Open

textarea 聚焦光标问题 #5359

mingsen-Luo opened this issue Mar 21, 2025 · 5 comments
Assignees

Comments

@mingsen-Luo
Copy link

发行方式

小程序

具体平台

微信小程序

开发环境

Windows

项目创建方式

HBuilderX

依赖版本

4.45

问题描述

IOS 18及以上机型
在小程序中使用 textarea 时,首次输入内容然后失去焦点,再次点击输入的时候光标会显示在最前面。
其他机型暂时没有出现这个问题
使用:cursor 设置光标位置也没有解决这个问题

重现步骤

1、点击输入
2、失去焦点
3、再次聚焦

期望行为

期望在第三步骤的时候光标应该在最后

实际行为

No response

截图或录屏

No response

@GRCmade
Copy link
Collaborator

GRCmade commented Mar 24, 2025

hello 我这里没有复现这样的情况,这个光标位置是与你的点击位置有关,或者你可以提供一个视频看看

Image

@GRCmade GRCmade self-assigned this Mar 24, 2025
@Otto-J
Copy link
Member

Otto-J commented Mar 24, 2025

我们是不是在 ask 和 IM 上交流过了?

@mingsen-Luo
Copy link
Author

我们不是在问和 IM 上交流了吗?

没有哦 我在另外一个平台上看到也有人提出过这个问题,下面这个是链接
http://bbs.itying.com/topic/678ca5714b218c005fa1dd35

@mingsen-Luo
Copy link
Author

你好我这里没有复现这样的情况,这个位置是与你的点击位置有关,或者你可以提供一个视频看看

Image

https://github.com/user-attachments/assets/94aa73ed-95e2-4a0e-9663-15c8f30a048c
这是视频,麻烦看下呢。input输入框不会出现这个问题,只有textarea中会出现,IOS18.1和18.2都有这种情况。
第一次点击的时候光标都会跑在最前面去,再次点击的时候就会出现在最后面。

@GRCmade
Copy link
Collaborator

GRCmade commented Mar 25, 2025

初步判断是小程序上的textarea组件有问题,使用微信小程序原生项目也有这个问题,这个得在微信社区反馈,我提交了一个:https://developers.weixin.qq.com/community/develop/doc/000cc24e65c470552013b098762800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants