帖子
帖子
用户
博客
课程
显示全部楼层
17
帖子
0
勋章
125
Y币

[多端开发] input 和 textarea 值为空时 无法粘贴内容(安卓)

[复制链接]
发表于 2021-9-13 10:29:41
input 和 textarea 值为空时 无法粘贴内容(安卓)
有设置 allowEdit:true 是在 api.openFrameGroup  frames : [{allowEdit:true,
输入框样式 也有加 user-select: all !important;
    -webkit-user-select: all !important;

都无效。 安卓输入框值为空时 不能粘贴 就是不弹系统粘贴 有值的时候 能弹窗。 ios好像没有这个问题

17
帖子
0
勋章
125
Y币
是 AVM 框架下
380
帖子
4
勋章
6
Y币
  1. <template>
  2.     <scroll-view class="main" scroll-y>
  3.         <input placeholder="输入限制为10,自动获取焦点" maxlength="10" autofocus/>
  4.         <input type="password" placeholder="密码输入框"/>
  5.         <input placeholder="数字键盘" keyboard-type="number"/>
  6.         <input placeholder="键盘完成按钮文字为搜索" confirm-type="search" onconfirm={this.onconfirm}/>
  7.     </scroll-view>
  8. </template>
  9. <style>
  10.     .main {
  11.         width: 100%;
  12.         height: 100%;
  13.     }
  14.     input {
  15.         margin: 8px;
  16.         width: auto;
  17.     }
  18. </style>
  19. <script>
  20.     export default {
  21.         name: 'test',
  22.         methods:{
  23.             onconfirm(e){
  24.                 api.alert({
  25.                     msg: '搜索' + e.detail.value
  26.                 });
  27.             }
  28.         }
  29.     }
  30. </script>
复制代码


打开一个普通的stml  , 我这里测试能弹出
17
帖子
0
勋章
125
Y币
技术支持-F 发表于 2021-9-13 15:06
打开一个普通的stml  , 我这里测试能弹出

是值为空的时候
380
帖子
4
勋章
6
Y币

为空也能弹出
17
帖子
0
勋章
125
Y币

解决了...
380
帖子
4
勋章
6
Y币
OK
您需要登录后才可以回帖 登录

本版积分规则