You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by GitBox <gi...@apache.org> on 2018/09/13 02:11:53 UTC

[GitHub] tody123 opened a new issue #1519: Android端input控件在默认输入一个字符后,删除不能调用input回调

tody123 opened a new issue #1519: Android端input控件在默认输入一个字符后,删除不能调用input回调
URL: https://github.com/apache/incubator-weex/issues/1519
 
 
   <!--
   Thanks for using Weex. Please follow the [Bug Report Guidelines](http://weex-project.io/bug-report-guidelines.html) to file issues. A good bug report should include the following information:
   -->
   
   <!--
   感谢使用 Weex。请遵照 [Bug 报告指南](http://weex-project.io/cn/bug-report-guidelines.html) 创建 issue,希望你可以提供如下信息:
   -->
   
   ## Description
   Android端input控件在默认输入一个字符后,删除不能调用input回调
   
   ## Environment
   android  weex版本 0.18.0
   小米3手机 6.0系统
   
   ## Broken Example
   `
   <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>
   `
   
   ## Steps to Reproduce
   
   1、input控件默认有一个字符
   2、弹起软键盘删除那个字符
   3、监听input回调事件没有调用
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services