Semantic-UI-React icon indicating copy to clipboard operation
Semantic-UI-React copied to clipboard

Max call stack exceeded when selecting disabled item in dropdown while wrapSelection is false

Open ctoppel opened this issue 3 years ago • 1 comments

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

ctoppel avatar May 10 '22 04:05 ctoppel

Same issue #2577, but closed

Unsfer avatar Jan 27 '23 06:01 Unsfer