Skip to content

defaultOption Support for multiple selection - #67

Open
onuraskinn wants to merge 2 commits into
danish1658:mainfrom
onuraskinn:main
Open

defaultOption Support for multiple selection#67
onuraskinn wants to merge 2 commits into
danish1658:mainfrom
onuraskinn:main

Conversation

@onuraskinn

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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

@ricardogomez-dev

Copy link
Copy Markdown

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