【bug】点击input无法获取焦点
发布于 6 年前 作者 xiaming 4478 次浏览 来自 问答

wxss

.container {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.table {
  flex: 1;
}
.chat {
  height: 50px;
}
page {
  height: 100%;
}

wxml

<view class="container">
  <view class="table">
  </view>
  <view class="chat">
  <input placeholder="String" />
  </view>
</view>

使用flex布局将input固定在屏幕底部,点击input无法获取焦点,textare同样。(只在devtool中测试,未在真机中测试)

2 回复

我也遇到这个问题

version: v0.12.130400

os: win10 x64

回到顶部