diff --git a/package.json b/package.json index e6403637..ff827a44 100644 --- a/package.json +++ b/package.json @@ -66,6 +66,7 @@ "react-progress-2": "^4.4.2", "react-select": "1.2.1", "react-textarea-autosize": "5.1.0", + "react-tiny-virtual-list": "^2.2.0", "react-transition-group": "2.9.0", "react-visibility-sensor": "3.11.0", "redux": "^3.7.2", diff --git a/src/components/Select.tsx b/src/components/Select.tsx index 7783aba2..7c969fc0 100644 --- a/src/components/Select.tsx +++ b/src/components/Select.tsx @@ -7,6 +7,7 @@ import {uncontrollable} from 'uncontrollable'; import React from 'react'; +import VirtualList from 'react-tiny-virtual-list'; import Overlay from './Overlay'; import PopOver from './PopOver'; import Downshift, {ControllerStateAndHelpers} from 'downshift'; @@ -402,7 +403,7 @@ export class Select extends React.Component { componentDidUpdate(prevProps: SelectProps) { const props = this.props; - let fn:() => void = noop; + let fn: () => void = noop; if ( props.value !== prevProps.value || @@ -410,17 +411,23 @@ export class Select extends React.Component { ) { let selection: Array