We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
微信小程序 IOS真机
小程序基础库: 2.30.2 使用框架: React
复现代码
import React from 'react'; import Taro from '@tarojs/taro'; import { View, Input, Text } from '@tarojs/components'; export default class InputPage extends React.Component { public constructor(props) { super(props); } public render(): JSX.Element { return ( <View className='page'> <Input type='text' placeholder='test' value='12345678'/> </View> ); } }
点击输入框聚焦,光标出现在内容的后面
第一次点击聚焦光标永远在最前面,后面失焦后再点击光标才出现在初始内容的后面。设置其他类型比如number、digit也存在该问题
👽 Taro v3.6.6 Taro CLI 3.6.6 environment info: System: OS: Windows 10 10.0.19044 Binaries: Node: 14.18.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.11 - ~\AppData\Roaming\npm\yarn.CMD npm: 6.14.1 - C:\Program Files\nodejs\npm.CMD npmPackages: react: ^18.0.0 => 18.2.0
The text was updated successfully, but these errors were encountered:
经排查,是由于 wxml 模版的 cursor 初始值设置异常导致的,暂时没有很好的办法临时解决这个问题,会跟着下个 taro 版本一起修复上线。
Sorry, something went wrong.
经尝试,可采用,先设置focus+重新set初始值解决此问题 setTimeout(() => { setInputFocus(true); setKeyword(keyword); }, 400);
setTimeout(() => { setInputFocus(true); setKeyword(keyword); }, 400);
taro3.6.2还是有这个bug 怎么还没解决啊,求解决方案啊。
xuanzebin
Successfully merging a pull request may close this issue.
相关平台
微信小程序
IOS真机
小程序基础库: 2.30.2
使用框架: React
复现步骤
复现代码
期望结果
点击输入框聚焦,光标出现在内容的后面
实际结果
第一次点击聚焦光标永远在最前面,后面失焦后再点击光标才出现在初始内容的后面。设置其他类型比如number、digit也存在该问题
环境信息
The text was updated successfully, but these errors were encountered: