fix(vue-renderless): [radio-group] fix handleKeydown blocking default events and bubble logicbug (#1650)

Fix blocking default events and bubble logic
This commit is contained in:
Nowitzki41 2024-06-27 16:18:22 +08:00 committed by GitHub
parent 403fea7e0e
commit 32076d45da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -26,10 +26,10 @@ export const handleKeydown =
switch (event.keyCode) {
case KEY_CODE.ArrowDown:
case KEY_CODE.ArrowRight:
event.stopPropagation()
event.preventDefault()
if (index === length - 1) {
event.stopPropagation()
event.preventDefault()
roleRadiosNodes[0].click()
roleRadiosNodes[0].focus()
} else {