TypeScript React Select Scroll to Option Demo

在Chrome中,对于一个multiple的select,当通过text input定位某一个option时, 第一次匹配上的时候,它会自动滚动到选中的option,但是删除text input的内容,再次输入时, 它就不会scroll了(在firefox中可以)。

这个demo演示了如何在react中实现scroll

npm install
npm run demo

It will open page on browser automatically.