taro Editor组件在光标未选中情况下,长按无法粘贴,会自动失焦(安卓机存在问题,ios不存在)

nue99wik  于 4个月前  发布在  iOS
关注(0)|答案(1)|浏览(81)

相关平台

微信小程序

复现仓库

https://gitee.com/wenwenqiangqiang/taro-editor-bug-demo.git
小程序基础库: 2.32.0
使用框架: React

复现步骤

在任一新页面引入Editor组件,在光标未选中内容时长按

期望结果

能够长按粘贴插入内容

实际结果

长按会出现粘贴,但是会很快失焦造成无法粘贴

环境信息

Taro v3.6.6

  Taro CLI 3.6.6 environment info:
    System:
      OS: macOS Mojave 10.14.6
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 14.6.0 - /usr/local/bin/node
      Yarn: 1.22.4 - /usr/local/bin/yarn
      npm: 6.14.7 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.6 => 3.6.6 
      @tarojs/components: 3.6.6 => 3.6.6 
      @tarojs/helper: 3.6.6 => 3.6.6 
      @tarojs/mini-runner: 3.6.6 => 3.6.6 
      @tarojs/plugin-framework-react: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-alipay: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-h5: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-jd: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-qq: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-swan: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-tt: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-weapp: 3.6.6 => 3.6.6 
      @tarojs/react: 3.6.6 => 3.6.6 
      @tarojs/runtime: 3.6.6 => 3.6.6 
      @tarojs/shared: 3.6.6 => 3.6.6 
      @tarojs/taro: 3.6.6 => 3.6.6 
      @tarojs/webpack-runner: 3.6.6 => 3.6.6 
      babel-preset-taro: 3.6.6 => 3.6.6 
      eslint-config-taro: 3.6.6 => 3.6.6 
      react: ^18.0.0 => 18.2.0 
    npmGlobalPackages:
      typescript: 4.9.5
7nbnzgx9

7nbnzgx91#

是否有测试过小程序原生组件,我看了一下原生组件貌似是一样的表现

相关问题