Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown search doesn't work if Dropdown items are defined using JSX #1378

Closed
raptoria opened this issue Feb 23, 2017 · 1 comment
Closed

Comments

@raptoria
Copy link

raptoria commented Feb 23, 2017

the search works this way:

<Dropdown options={arr} search selection />

the search doesn't work if I do this (inside another JSX component):

   <Dropdown placeholder='Select Baskets..' selection search className={styles.root}>
          <Dropdown.Menu>
            { this.props.values.map((option) => 
              <Dropdown.Item key={option.value} {...option} >
                <Icon name='attention' className='right floated' />
                 {option.text}
              </Dropdown.Item>
              )}
          </Dropdown.Menu>
        </Dropdown>

Dropdown.Item has key, value and text (as props)

@levithomason
Copy link
Member

This is a known limitation and is under development. You can see more context in #1380 which also updates several doc examples and adds clarifying messages regarding known limitations.

If anyone would like to go further and help out adding support for those limitations, we need to extend the props API to allow defining more complex menu configurations. See #1365 for a great start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants