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
H5
浏览器版本: Chrome 112.0.5615.49 使用框架: React
点击按钮
import { useRef } from 'react' import { Input, Button } from '@tarojs/components' export default function Index () { const inputRef = useRef<HTMLInputElement>(null) function handleClick() { inputRef.current?.focus() } return ( <> <Input ref={inputRef} /> <Button onClick={handleClick}>Focus the input</Button> </> ) }
<taro-input-core> 可以使用 focus 方法
<taro-input-core>
<taro-input-core> 的 focus property 是布尔值,不是一个方法
👽 Taro v3.6.7 Taro CLI 3.6.7 environment info: System: OS: macOS 13.1 Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v16.19.0/bin/yarn npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm npmPackages: @tarojs/cli: 3.6.7 => 3.6.7 @tarojs/components: 3.6.7 => 3.6.7 @tarojs/helper: 3.6.7 => 3.6.7 @tarojs/plugin-framework-react: 3.6.7 => 3.6.7 @tarojs/plugin-platform-alipay: 3.6.7 => 3.6.7 @tarojs/plugin-platform-h5: 3.6.7 => 3.6.7 @tarojs/plugin-platform-jd: 3.6.7 => 3.6.7 @tarojs/plugin-platform-qq: 3.6.7 => 3.6.7 @tarojs/plugin-platform-swan: 3.6.7 => 3.6.7 @tarojs/plugin-platform-tt: 3.6.7 => 3.6.7 @tarojs/plugin-platform-weapp: 3.6.7 => 3.6.7 @tarojs/react: 3.6.7 => 3.6.7 @tarojs/runtime: 3.6.7 => 3.6.7 @tarojs/shared: 3.6.7 => 3.6.7 @tarojs/taro: 3.6.7 => 3.6.7 @tarojs/webpack5-runner: 3.6.7 => 3.6.7 babel-preset-taro: 3.6.7 => 3.6.7 eslint-config-taro: 3.6.7 => 3.6.7 react: ^18.0.0 => 18.2.0
The text was updated successfully, but these errors were encountered:
reflect 属性干扰导致,需要移除对于 focus 属性的同步更改
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
相关平台
H5
浏览器版本: Chrome 112.0.5615.49
使用框架: React
复现步骤
点击按钮
期望结果
<taro-input-core>
可以使用 focus 方法实际结果
<taro-input-core>
的 focus property 是布尔值,不是一个方法环境信息
The text was updated successfully, but these errors were encountered: