react-autocomplete icon indicating copy to clipboard operation
react-autocomplete copied to clipboard

How to disable options if already selected

Open parwinderD4D opened this issue 6 years ago • 2 comments

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

parwinderD4D avatar Apr 26 '19 13:04 parwinderD4D

Have you tried using the shouldItemRender prop?

alexyapp avatar May 04 '19 15:05 alexyapp

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

Thanks

parwinderD4D avatar May 08 '19 13:05 parwinderD4D