qwen-code/packages
Nan Li 173246723e
fix: resolve RadioButtonSelect array bounds crash and auth dialog navigation (#46)
- Add bounds checking in RadioButtonSelect to prevent accessing undefined array elements
- Add useEffect to ensure activeIndex stays within valid bounds when items array changes
- Add validation guards around navigation handlers (up/down arrow keys)
- Fix AuthDialog initialAuthIndex calculation to prevent negative values from findIndex
- Ensure Enter key works properly on authentication screen

Fixes TypeError: Cannot read properties of undefined (reading 'value') that occurred
when activeIndex was out of bounds due to dynamic array changes or invalid initialization.

Signed-off-by: loheagn <loheagn@icloud.com>
Co-authored-by: linan.loheagn3 <linan.loheagn3@bytedance.com>
2025-07-23 14:15:35 +08:00
..
cli fix: resolve RadioButtonSelect array bounds crash and auth dialog navigation (#46) 2025-07-23 14:15:35 +08:00
core pre-release: fix ci (#1) 2025-07-22 09:27:14 -07:00
vscode-ide-companion pre-release: fix ci (#1) 2025-07-22 09:27:14 -07:00