mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
fix cannot switch between hours, minutes and seconds by pressing the tab (#554)
This commit is contained in:
@@ -347,12 +347,20 @@ function onKeyDown(type: string, e: KeyboardEvent): void {
|
|||||||
setChildInputFocus(minuteInput.value?.$el, 'input');
|
setChildInputFocus(minuteInput.value?.$el, 'input');
|
||||||
}, 50);
|
}, 50);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
return;
|
||||||
} else if (type === 'minute') {
|
} else if (type === 'minute') {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setChildInputFocus(secondInput.value?.$el, 'input');
|
setChildInputFocus(secondInput.value?.$el, 'input');
|
||||||
}, 50);
|
}, 50);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user