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组件focus会弹出两次键盘 #7014 未解决 #8225

Open
QingATech opened this issue Dec 9, 2020 · 0 comments
Open

Input组件focus会弹出两次键盘 #7014 未解决 #8225

QingATech opened this issue Dec 9, 2020 · 0 comments
Labels
F-react Framework - React T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x

Comments

@QingATech
Copy link

相关平台

字节跳动小程序

小程序基础库: 3.0.15
使用框架: React

复现步骤

使用AtSearchBar 或Input 组件,onFocus 会触发两次,导致键盘弹起两次

<AtSearchBar
focus={this.state.focus}

      onFocus={() => {
        console.log("search onFocus")
      }}
     
    />

期望结果

弹起一次键盘

实际结果

弹起两次键盘

环境信息

👽 Taro v3.0.15


  Taro CLI 3.0.15 environment info:
    System:
      OS: macOS 10.15.5
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.19.0 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 6.14.8 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.0.18 => 3.0.18 
      @tarojs/mini-runner: 3.0.11 => 3.0.11 
      @tarojs/react: 3.0.18 => 3.0.18 
      @tarojs/runtime: 3.0.18 => 3.0.18 
      @tarojs/taro: 3.0.18 => 3.0.18 
      @tarojs/webpack-runner: 3.0.11 => 3.0.11 
      babel-preset-taro: 3.0.11 => 3.0.11 
      eslint-config-taro: 3.0.11 => 3.0.11 
      react: ^16.10.0 => 16.14.0 
      taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.3 


补充信息

与机型有关,我的机型是华为 P30 pro ,测试了iPhone是不会弹起两次的

@taro-bot2 taro-bot2 bot added F-react Framework - React T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x labels Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

1 participant