Semantic-UI-React
Semantic-UI-React copied to clipboard
Max call stack exceeded when selecting disabled item in dropdown while wrapSelection is false
Bug Report
Steps
Create a Dropdown with the wrapSelection prop set to false add options and set disabled to true on the first or last option use the arrow keys to move to the disabled option
Expected Result
Expected to not have an error and stay on the option prior to the disabled option
Actual Result
Receive Uncaught RangeError: Maximum call stack size exceeded when press arrow key that would move on to the disabled item.
Version
2.1.1
Testcase
https://codesandbox.io/s/semantic-ui-react-forked-yrv1xm?file=/index.js
Same issue #2577, but closed