React-select: multi-select not working with fixed-data-table

Created on 18 Jun 2017  路  1Comment  路  Source: JedWatson/react-select

I have simply included React-Multiselect inside a cell in fixed-data-table, but when clicking on options, options are hidden inside cell and are not displayed properly.

MultiSelectCell = ({rowIndex, col, data, roles, ...props}) => {
    const ROLES = [
      { label: 'one', value: '1' },
      { label: 'two', value: '2' },
      { label: 'three', value: '3' },
      { label: 'four', value: '4' },
      { label: 'five', value: '5' },
      { label: 'six', value: '6' },
    ]
    const values = []
    return (
      <Cell {...props}>
        <Select
          multi
          value={values}
          placeholder="Select your role(s)"
          options={ROLES} /> 
      </Cell>
    )
  }
categorquestion

Most helpful comment

Hi @anandrikka it sounds like the Cell has some styling of overflow hidden which means the options won't overflow. We don't currently support rendering the options list in a portal and then positioning it below the input.

>All comments

Hi @anandrikka it sounds like the Cell has some styling of overflow hidden which means the options won't overflow. We don't currently support rendering the options list in a portal and then positioning it below the input.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mbonaci picture mbonaci  路  3Comments

coder-guy22296 picture coder-guy22296  路  3Comments

AchinthaReemal picture AchinthaReemal  路  3Comments

pgoldweic picture pgoldweic  路  3Comments

geraldfullam picture geraldfullam  路  3Comments