Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pp1232 opened this issue Aug 23, 2016 · 1 comment
Closed

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

pp1232 opened this issue Aug 23, 2016 · 1 comment
Assignees

Comments

@pp1232
Copy link

pp1232 commented Aug 23, 2016

使用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)
上尝试都出现了闪退问题。

sospartan added a commit that referenced this issue Aug 23, 2016
@sospartan
Copy link
Contributor

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

sospartan added a commit that referenced this issue Aug 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants