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

Input onInput 事件 报错 Cannot read property 'isSameLayer' of null 并失去焦点 #7490

Closed
hlskysong opened this issue Sep 1, 2020 · 1 comment
Labels
F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x

Comments

@hlskysong
Copy link

相关平台

百度小程序

小程序基础库: 3.190.255-rc
使用框架: React

复现步骤

Input 获取焦点 输入一个字符后报错并失去焦点

{
"dependencies": {
    "@babel/runtime": "^7.7.7",
    "@tarojs/components": "3.0.8",
    "@tarojs/react": "3.0.8",
    "@tarojs/runtime": "3.0.8",
    "@tarojs/taro": "3.0.8",
    "mobx": "^4.8.0",
    "mobx-react": "^6.1.4",
    "react": "^16.10.0",
    "react-dom": "^16.10.0",
    "taro-ui": "^3.0.0-alpha.3"
  },
  "devDependencies": {
    "@types/webpack-env": "^1.13.6",
    "@types/react": "^16.0.0",
    "@tarojs/mini-runner": "3.0.8",
    "@babel/core": "^7.8.0",
    "@tarojs/webpack-runner": "3.0.8",
    "babel-preset-taro": "3.0.8",
    "eslint-config-taro": "3.0.8",
    "eslint": "^6.8.0",
    "eslint-plugin-react": "^7.8.2",
    "eslint-plugin-import": "^2.12.0",
    "eslint-plugin-react-hooks": "^1.6.1",
    "stylelint": "9.3.0"
  }
}

期望结果

onInput 事件行为正常

实际结果

onInput 事件 报错 Cannot read property 'isSameLayer' of null 并失去焦点

环境信息

Taro CLI 3.0.8 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.18.2 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.4 - C:\Users\Aming\AppData\Roaming\npm\yarn.CMD
      npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD


补充信息

函数式组件 + mobx , 组件内使用 useLocalStore 做状态管理 ,

微信小程序正常

@taro-bot2 taro-bot2 bot added F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x labels Sep 1, 2020
@Chen-jj
Copy link
Contributor

Chen-jj commented Sep 1, 2020

Duplicate of #7293

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants