react-select-plus icon indicating copy to clipboard operation
react-select-plus copied to clipboard

Option Groups are not searchable

Open hamza-hajji opened this issue 7 years ago • 0 comments

Select option groups are not searchable

  • What's your use case? I have an application that uses option groups, and I'd like to search not only the nested options, but also the groups.

For example if I have options that look something like this

[{
    label: 'USA',
    options: [{
      value: 'mit',
      label: 'MIT'
    }, {
       value: 'harvard',
       label: 'Harvard'
    }]
  }, {
    label: 'India',
    options: [{
    	value: 'university-of-delhi',
        label: 'University of Delhi'
    }, {
    	value: 'university-of-calcutta',
        label: 'University of Calcutta'
    }]
  }
]

I'd like to also be able to type india and the group with all of its children appear.

Is there a way to do this? and if not, hopefully this will be implemented in a future version. Thanks

hamza-hajji avatar Jan 30 '18 14:01 hamza-hajji