ios系统,textarea放置在swiper中,当文字输入过多是时, 下方文字无法正常获取到焦点?
ios系统,textarea放置在swiper中,当文字输入过多时, 下方文字无法正常获取到焦点
< swiper indicator-dots = "{{indicatorDots}}" autoplay = "{{autoplay}}" interval = "{{interval}}" duration = "{{duration}}" > < block wx:for = "{{imgUrls}}" > < swiper-item > < view class = "textarea-box clearfix" > < view class = "textarea-wrap" > < textarea value = "{{inputValue}}" maxlength = "6990" show-confirm-bar = "false" placeholder = "在此输入反馈内容" placeholder-class = "placeholderStyle" bindinput = "updateValue" data-name = 'inputValue' /> </ view > </ view > </ swiper-item > </ block > </ swiper > |
.count { margin-right : 20 rpx; float : right ; color : #BDBDBD ; font-size : 24 rpx; } .textarea-box { width : 100% ; border-top : 20 rpx solid #F4F4F4 ; /*border-bottom: 20rpx solid #F4F4F4;*/ height : 200px ; border : 1px solid red ; background-color : #FBFBFB ; } .textarea-wrap { padding : 0 30 rpx; } textarea { width : 100% ; /*min-height: 100px;*/ /*overflow: auto;*/ /*overflow-y: scroll;*/ padding : 25 rpx 0 ; } swiper{ height : 300px ; overflow : visible ; } swiper-item{ height : 300px ; overflow : visible ; } |
// 双向绑定textarea updateValue: function (e) { this .setData({ inputValue: e.detail.value }); }, |