You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(inquirerer): handle empty filteredOptions in checkbox and autocomplete
When filtering options results in zero matches, pressing arrow keys or
space would crash with 'Cannot read properties of undefined'. This fix:
- Adds guards in UP_ARROW, DOWN_ARROW, and SPACE handlers to no-op when
filteredOptions is empty
- Updates updateFilteredOptions() in checkbox to clamp selectedIndex and
startIndex when filtered results change (matching autocomplete behavior)
- Prevents division by zero in DOWN_ARROW modulo operation
- Prevents accessing undefined array elements
0 commit comments