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

QQ小程序IOS下textarea的adjustPosition属性无效 #11555

Open
leafchao opened this issue Apr 1, 2022 · 0 comments
Open

QQ小程序IOS下textarea的adjustPosition属性无效 #11555

leafchao opened this issue Apr 1, 2022 · 0 comments
Labels
F-react Framework - React T-qq Target - 编译到 QQ 小程序 V-3 Version - 3.x

Comments

@leafchao
Copy link

leafchao commented Apr 1, 2022

相关平台

QQ 小程序

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

复现步骤

<View className='comment_main col_start_center'>
      <Textarea className='title_edit'
                value={_currentComment}
                maxlength={-1}
                placeholder='请写评论'
                adjustPosition={false}
                onInput={getInputValue} />
      <Text className='title_save' onClick={submit}>保存</Text>
    </View>

期望结果

页面不会被键盘顶起

实际结果

页面被键盘顶起

环境信息

 Taro CLI 3.4.3 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.18.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.10 - C:\Users\17209\AppData\Roaming\npm\yarn.CMD
      npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD


补充信息

在编译后的base.qml中发现 adjust-position="{{xs.b(i.adjustPosition,true)}}" 。将其中的true手动改为false。成功解决ios页面被顶起。感觉是不是taro编译后未处理adjust-position这个属性

@taro-bot2 taro-bot2 bot added F-react Framework - React T-qq Target - 编译到 QQ 小程序 V-3 Version - 3.x labels Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-qq Target - 编译到 QQ 小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

1 participant