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

项目升级到 3.6.1 之后,Input 组件只要设置 focus 属性就会报错 #13526

Closed
spadeACE7 opened this issue Mar 27, 2023 · 1 comment

Comments

@spadeACE7
Copy link

相关平台

H5

复现仓库

https://github.com/wuba/taro-playground.git
浏览器版本: Chrome
使用框架: React

复现步骤

yarn

yarn dev:h5

浏览器地址
/taro-playground/#/pages/components/pages/input/input
就会出现报错

期望结果

和以前一样正常使用Input

实际结果

报错:
vendors-node_modules_taro_h5_prebundle_chunk-SAWYJKEU_js.js:16636 Uncaught TypeError: Cannot assign to read only property 'focus' of object '#'

环境信息

 Taro CLI 3.6.1 environment info:
    System:
      OS: macOS 13.2.1
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 14.15.4 - /usr/local/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 8.19.3 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.1 => 3.6.1 
      @tarojs/components: 3.6.1 => 3.6.1 
      @tarojs/components-rn: 3.6.1 => 3.6.1 
      @tarojs/helper: 3.6.1 => 3.6.1 
      @tarojs/plugin-framework-react: 3.6.1 => 3.6.1 
      @tarojs/plugin-html: 3.6.1 => 3.6.1 
      @tarojs/plugin-mini-ci: 3.6.1 => 3.6.1 
      @tarojs/plugin-platform-alipay: 3.6.1 => 3.6.1 
      @tarojs/plugin-platform-jd: 3.6.1 => 3.6.1 
      @tarojs/plugin-platform-qq: 3.6.1 => 3.6.1 
      @tarojs/plugin-platform-swan: 3.6.1 => 3.6.1 
      @tarojs/plugin-platform-tt: 3.6.1 => 3.6.1 
      @tarojs/plugin-platform-weapp: 3.6.1 => 3.6.1 
      @tarojs/react: 3.6.1 => 3.6.1 
      @tarojs/rn-runner: 3.6.1 => 3.6.1 
      @tarojs/runtime: 3.6.1 => 3.6.1 
      @tarojs/shared: 3.6.1 => 3.6.1 
      @tarojs/taro: 3.6.1 => 3.6.1 
      @tarojs/taro-rn: 3.6.1 => 3.6.1 
      @tarojs/webpack5-runner: 3.6.1 => 3.6.1 
      babel-preset-taro: 3.6.1 => 3.6.1 
      eslint-config-taro: 3.6.1 => 3.6.1 
      expo: ~47.0.3 => 47.0.13 
      react: ^18.1.0 => 18.2.0 
      react-native: ^0.70.5 => 0.70.7 
    npmGlobalPackages:
      typescript: 4.2.3
@ZakaryCode
Copy link
Contributor

Duplicate of #13316

@ZakaryCode ZakaryCode marked this as a duplicate of #13316 Mar 27, 2023
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

2 participants