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

use two multiple-choice in one page #1

Open
kaola8246 opened this issue Mar 10, 2016 · 5 comments
Open

use two multiple-choice in one page #1

kaola8246 opened this issue Mar 10, 2016 · 5 comments

Comments

@kaola8246
Copy link

when use two multiple-choice in one page, one is setted to maxSelectedOptions=1 and other is setted to maxSelectedOptions =5 ,then the two multiple-choice both have maxSelectedOptions =5 actions , is there some setting issues?

@kaola8246
Copy link
Author

I have make it work will by fix the bug, i add a new state of maxSelectedOptions, in the state pool,and init it,

@d-a-n
Copy link
Owner

d-a-n commented Mar 10, 2016

@kaola8246 Thanks for reporting and fixing this. Please make a pull request and I'm happy to merge it.

@kaola8246
Copy link
Author

@d-a-n im sorry, i think i have not fix it , when i test it , i find it still not right , Could you give me some advise?

@kaola8246
Copy link
Author

@d-a-n at last , i have fixed it , just change the line 22 just like this var tempSelectedOptions = []; if(this.props.selectedOptions) { tempSelectedOptions = this.props.selectedOptions.slice(0) } this.state = { dataSource: ds.cloneWithRows(this.props.options), selectedOptions: tempSelectedOptions, }; this will copy a new selectedOptions to the companent. then it been fixed

@d-a-n
Copy link
Owner

d-a-n commented Mar 15, 2016

@kaola8246 I can't reproduce this behavior. Can you share the code that is not working for you?

iphone_6_-_iphone_6___ios_9_2__13c75_

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