Skip to content

Option Groups are not searchable #108

@hamza-hajji

Description

@hamza-hajji

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions