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) {
|
switch (event.keyCode) {
|
||||||
case KEY_CODE.ArrowDown:
|
case KEY_CODE.ArrowDown:
|
||||||
case KEY_CODE.ArrowRight:
|
case KEY_CODE.ArrowRight:
|
||||||
|
event.stopPropagation()
|
||||||
|
event.preventDefault()
|
||||||
|
|
||||||
if (index === length - 1) {
|
if (index === length - 1) {
|
||||||
event.stopPropagation()
|
|
||||||
event.preventDefault()
|
|
||||||
|
|
||||||
roleRadiosNodes[0].click()
|
roleRadiosNodes[0].click()
|
||||||
roleRadiosNodes[0].focus()
|
roleRadiosNodes[0].focus()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue