You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "tody (JIRA)" <ji...@apache.org> on 2018/09/12 11:52:00 UTC

[jira] [Created] (WEEX-612) Android手机上input控件默认设置一个字符串后,然后清除不能触发input事件

tody created WEEX-612:
-------------------------

             Summary: Android手机上input控件默认设置一个字符串后,然后清除不能触发input事件
                 Key: WEEX-612
                 URL: https://issues.apache.org/jira/browse/WEEX-612
             Project: Weex
          Issue Type: Bug
          Components: Android
    Affects Versions: 0.18
         Environment: weex  0.18.0    、android 小米3  6.0系统
            Reporter: tody
            Assignee: YorkShen


1、weex测试demo:
{code:java}
<template>
<div>
<text style="font-size: 40px">oninput: {{txtInput}}</text>
<input type="text" placeholder="Input Text" class="input" :value="txtInput" :autofocus=true @input="oninput"/>
</div>
</template>

<style scoped>
.input {
font-size: 60px;
height: 80px;
width: 750px;
}
</style>

<script>
var modal = weex.requireModule('modal')
module.exports = {
data: function () {
return {
txtInput: '外',
};
},
methods: {
oninput: function (event) {
this.txtInput = event.value;
modal.toast({
message: "input: "+event.value
})
}
}
};
</script>
{code}
 

2、android清除input元素,input事件没有触发。

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)