Skip to content

Input filtering is laggy for large lists of options on v1.0.0-beta10 #807

@janraasch

Description

@janraasch

Hi there, first of all, thank you for this beautiful React component.

Now, here's the problem with it ;)))

I have an options list with about 2000 items, e.g.

const options = Array.apply(0, Array(2000)).map(function (_i, i) { return i; }).map((i) => ({ 
  value: ('my_value_numero_' + i), label: ('MyLabelStart - (Numero ' + i + ')')
}))

Then, simply render the Select component via

function onChange(values) {
  console.log('Not even doing anything')
}

ReactDOM.render(<Select
  multi=true
  value={[]}
  options={options}
  onChange={onChange} 
/>, domNode)

Typing something into the input feels very laggy on v1.0.0-beta10. On v0.9.1 it is fine.

It is really quiet significant of a difference. v0.9.1 is really smooth, while v1.0.0-beta10 is laggy.

(If you need an actual production example I can sent you my data via e-mail, but I tried to construct data good enough to reproduce the problem above.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions