react-select icon indicating copy to clipboard operation
react-select copied to clipboard

Creatable Dropdown is very slow if you have a lot of items

Open m2nhawk opened this issue 5 years ago • 1 comments

Hi, first of all, thanks for the nice library!

I'm having a problem, that the component is very slow if I use a lot of data, like 500 items. Scrolling and filtering on typing is good, but if I hover on some items, then it renders very slow.

[Violation] 'mousedown' handler took 236ms [Violation] 'mousedown' handler took 213ms

        <CreatableSelect
          value={selectedSkills}
          onChange={(values) => {
            setSelectedSkills(values.map((value) => {
              return { value: value.value, label: value.value }
            }))
          }}
          isMulti
          name="colors"
          options={ skillsList }
          className="basic-multi-select"
          classNamePrefix="select"
        />

I'm using the latest react-select version 5.2.1

m2nhawk avatar Nov 18 '21 07:11 m2nhawk

Fixed the issue with custom MenuList from: https://github.com/JedWatson/react-select/issues/3128 But I cannot believe that the issue is known since 2018 and is still not fixed.

m2nhawk avatar Nov 18 '21 08:11 m2nhawk