HubSpot / react-select-plus

Fork of https://github.com/JedWatson/react-select with option group support
http://github.hubspot.com/react-select-plus/
MIT License
286 stars 93 forks source link

Option Groups are not searchable #108

Open hamza-hajji opened 6 years ago

hamza-hajji commented 6 years ago

Select option groups are not searchable

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