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

defaultOption Support for multiple selection #67

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

onuraskinn
Copy link

I was using MultipleSelection in my react-native project , defaultOption props was not work , I have tried to add defaultSelected prop inside of this library . I also tested myself and it seems working ok for now you can also test it by yourself.

@RafaelCENG
Copy link

Hi thanks for the commiting. What happends if my default is async? Waiting my API call to retrieve my default values. Renders empty array at the start because my state is empty at the start

@onuraskinn
Copy link
Author

On your scenario , the code should have work as expected because the defaultOption variable set as any[] . You can also render whole component based on ur async API call result with conditional rendering.

@Gugarauj07
Copy link

I need to use defaultOptions on multipleSelect, please accpet this pull request asap!!!

@ricardogomez-dev
Copy link

Please merge this fix into the library

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

Successfully merging this pull request may close these issues.

4 participants