GitHub user marekchen opened a pull request: https://github.com/apache/incubator-weex/pull/1053
[android]fix input bug è±æä¸å¥½å°±ç¨ä¸ææè¿°äºï¼ 1.å½å¨createdä¸è®¾ç½®inputçvalueå¼ä¸ºâ1âï¼ç¶åå é¤â1âï¼è¿æ¶ä¸ä¼è§¦åinputäºä»¶ 2.å½è¾å ¥â1âåï¼è¿æ¯ä¸è½è§¦åinputäºä»¶ï¼å 为valueå¼åè¾å ¥å¼ç¸åæ¶ï¼ä¸è§¦åinputäºä»¶ éç°ä»£ç å¦ä¸ï¼ ``` html <template> <div> <div> <text style="font-size: 40px">oninput: {{idCard}}</text> <text style="font-size: 40px">onchange: {{idCard}}</text> </div> <scroller> <div> <div style="background-color: #286090"> <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input type = text</text> </div> <input type="text" :value="idCard" @input="oninput" @change="onchange" class="input" maxlength="18" ref="name2"/> </div> <button class="button" @click="clickbutton">click</button> </scroller> </div> </template> <style scoped> .input { font-size: 60px; height: 80px; width: 750px; } .button { font-size: 36; width: 200px; height: 200px; color: #41B883; text-align: center; padding-top: 10; padding-bottom: 10; border-width: 2; border-style: solid; margin-right: 20; border-color: rgb(162, 217, 192); background-color: rgba(162, 217, 192, 0.2); } </style> <script> module.exports = { data: function () { return { idCard:'', }; }, methods: { clickbutton: function () { var that=this; var modal = weex.requireModule('modal') modal.toast({ message:"text:"+that.idCard, duration: 0.3 }) }, oninput: function(event){ this.idCard = event.value; console.log('oninput', event.value); }, onchange: function (event) { this.idCard = event.value; console.log('onchange', event.value); }, }, created(){ this.idCard = "1" } }; </script> ``` CheckList: **if** *isBugFix* **:** * [x] Make sure that you add at least one unit test for the bug which you had fixed. **elif** *isNewFeature* **:** * [ ] Update API docs for the component. * [ ] Update/Add demo to demonstrate new feature. * [ ] Update test scripts for the feature. * [ ] Add unit tests for the feature. You can merge this pull request into a Git repository by running: $ git pull https://github.com/marekchen/incubator-weex master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-weex/pull/1053.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1053 ---- commit ef9584f7c0a6246f75cd4fb6aef624537b0c038a Author: marekchen <c491843272@...> Date: 2018-03-07T11:41:12Z Update AbstractEditComponent.java ---- ---