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

支付宝小程序键盘弹起输入时底部绝对定位元素也会跟着弹起 #11430

Closed
TheKonka opened this issue Mar 11, 2022 · 3 comments
Labels
F-react Framework - React resolved T-alipay Target - 编译到支付宝小程序

Comments

@TheKonka
Copy link
Member

TheKonka commented Mar 11, 2022

相关平台

支付宝小程序

复现仓库

https://github.com/konka-king/alipay-pickerview
小程序基础库: 支付宝小程序开发者工具2.7.2版本
使用框架: React

复现步骤

页面有Input 或者 Textarea 输入框,底部有一个fixed 定位元素,点击输入框弹起手机键盘,底部fixed定位元素也会跟着弹起

本人已测试支付宝小程序原生写法,没有出现此问题。

期望结果

底部fixed定位元素不弹起

实际结果

底部fixed定位元素弹起

环境信息

👽 Taro v3.4.3


  Taro CLI 3.4.3 environment info:
    System:
      OS: macOS 12.2.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 17.3.0 - /opt/homebrew/bin/node
      Yarn: 1.22.17 - ~/.yarn/bin/yarn
      npm: 8.3.0 - /opt/homebrew/bin/npm
    npmPackages:
      @tarojs/components: 3.4.3 => 3.4.3 
      @tarojs/mini-runner: ^3.4.3 => 3.4.3 
      @tarojs/react: 3.4.3 => 3.4.3 
      @tarojs/runtime: 3.4.3 => 3.4.3 
      @tarojs/taro: 3.4.3 => 3.4.3 
      @tarojs/webpack-runner: 3.4.3 => 3.4.3 
      babel-preset-taro: 3.4.3 => 3.4.3 
      eslint-config-taro: 3.4.3 => 3.4.3 
      react: ^17.0.0 => 17.0.2 
@github-actions
Copy link
Contributor

等待热心的小伙伴解决问题中..., 有一些相关的 issues 可能帮助到你!

Thank you so much!

@TheKonka
Copy link
Member Author

TheKonka commented Mar 11, 2022

效果图如下
Screenshot_20220311-094602
Screenshot_20220311-094609

@Chen-jj Chen-jj added F-react Framework - React T-alipay Target - 编译到支付宝小程序 labels Mar 13, 2022
@TheKonka
Copy link
Member Author

input 组件加上 enableNative 属性即可解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React resolved T-alipay Target - 编译到支付宝小程序
Projects
None yet
Development

No branches or pull requests

2 participants