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

kl-multi-select在showRoot=true时无法清空 #361

Open
summercloud opened this issue Jul 10, 2018 · 0 comments
Open

kl-multi-select在showRoot=true时无法清空 #361

summercloud opened this issue Jul 10, 2018 · 0 comments

Comments

@summercloud
Copy link

<kl-multi-select 
    source={source} 
    multiple={true} 
    showRoot={true}
    value={value}  
    rootValue={rootValue}
    />
<p>选择的是:{value}</p>
<p>rootValue: {rootValue}</p>
<kl-button on-click={this.clear()} title="清空" />
<kl-button on-click={this.change()} title="修改" />

clear: function(){
this.rootValue = '';
}
change: function(){
this.rootValue = '1';
}

使用上述clear方式无法将kl-multi-select的选择清空;
使用上述change方式无法将kl-multi-select的选择修改。

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

1 participant