reactjs / react-autocomplete

WAI-ARIA compliant React autocomplete (combobox) component
MIT License
2.17k stars 532 forks source link

How to disable options if already selected #391

Open parwinderD4D opened 5 years ago

parwinderD4D commented 5 years ago

Hi Team,,

I am using this package and i want to disable all those option which are already selected.... I have two array 1st contain list of all countries and 2nd one contain list of those country which are selected by user.

Now i have to disable all those counties which are in 2nd array..

could you please help to fix this problem....

Thanks

alexyapp commented 5 years ago

Have you tried using the shouldItemRender prop?

parwinderD4D commented 5 years ago

No, could you please send me example code of this.... how i can use it..

Thanks