weex icon indicating copy to clipboard operation
weex copied to clipboard

input控件使用if控制隐藏时闪退

Open pp1232 opened this issue 10 years ago • 1 comments

使用if对input进行隐藏时候导致app闪退

<style>
    .input{
        width: 740;
        height: 80;
        font-size: 32;
        padding-left: 10;
        margin: 0;
        color:black;
    }
</style>

<template>
    <div style="flex-direction:column" >
        <div style="width:200;height:60;background-color:red;border-radius:20;flex-direction:row;justify-content:center;align-items:center;margin:20;" onclick="changeSelect">
            <text style="font-size:30">选择</text>
        </div>
        <input class="input" type="text" placeholder="给商家的留言(45字以内)" if={{show}}></input>
    </div>
</template>
<script>
    module.exports={
        data:{
            show:false,
        },  
        methods:{
            changeSelect:function(e){
                this.show=!this.show;
            }
        }
    }
</script>

使用weex版本为0.7 在华为mate7(android 4.4 ) 华为5x(android 6.0) 红米note2(android 5.0) 上尝试都出现了闪退问题。

pp1232 avatar Aug 23 '16 12:08 pp1232

谢谢反馈,android分支已修复,见 33b4aaf

sospartan avatar Aug 23 '16 12:08 sospartan