forked from opentiny/tiny-vue
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:
parent
403fea7e0e
commit
32076d45da
|
@ -26,10 +26,10 @@ export const handleKeydown =
|
|||
switch (event.keyCode) {
|
||||
case KEY_CODE.ArrowDown:
|
||||
case KEY_CODE.ArrowRight:
|
||||
if (index === length - 1) {
|
||||
event.stopPropagation()
|
||||
event.preventDefault()
|
||||
|
||||
if (index === length - 1) {
|
||||
roleRadiosNodes[0].click()
|
||||
roleRadiosNodes[0].focus()
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue