dialog+textarea翻车现场。
存在问题,textarea拉起键盘时,textarea跟随页面上推,但dialog不跟随上推,导致textarea错位。是否有解决方案?请指教,谢谢。
WXML:
<!-- 新增需求对话框 -->
<view wx:if="{{currentDialog=='newRequest'}}">
<view class="weui-mask"></view>
<view class="weui-dialog margin-lr-sm width-auto">
<view class="weui-dialog__hd"><strong class="weui-dialog__title">新增支撑需求</strong></view>
<view class="weui-dialog__bd padding-0 margin-bottom-sm">
<view class="text-left margin-bottom">
<view class="weui-cells__group weui-cells__group_form">
<view class="weui-cells__title flex justify-between"><text>类别</text><text bindtap="bindRequestTypeTips" class='cuIcon-info text-green'></text></view>
<view class="weui-cells weui-cells_form">
<view class="weui-cell weui-cell_active weui-cell_select">
<view class="weui-cell__bd">
<picker bindchange="bindPickerChange" range="{{arrRequestType}}" data-target="RequestType">
<view class="weui-select">{{arrRequestType[selectedRequestType]}}</view>
</picker>
</view>
</view>
</view>
</view>
</view>
<view class="text-left">
<view class="weui-cells__group weui-cells__group_form">
<view class="weui-cells__title">描述</view>
<view class="weui-cells weui-cells_form">
<view class="weui-cell">
<view class="weui-cell__bd">
<textarea class="weui-textarea" placeholder="请描述你的支撑需求" auto-height cursor-spacing="5" maxlength="120" bindinput="bindNewRequestInputChange" data-target="newRequestInput"></textarea>
<view class="weui-textarea-counter"><text>{{newRequestInputLength}}</text>/120</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="weui-dialog__ft">
<a class="weui-dialog__btn weui-dialog__btn_default" bindtap="bindDialogChange" data-target="null">取消</a>
<a class="weui-dialog__btn weui-dialog__btn_primary {{isNewRequesting?'text-gray':'text-green'}}" bindtap="bindNewRequest"><i wx:if="{{isNewRequesting}}" class="weui-loading"></i>新增</a>
</view>
</view>
</view>
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)