mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +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');
|
||||
}, 50);
|
||||
});
|
||||
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
return;
|
||||
} else if (type === 'minute') {
|
||||
nextTick(() => {
|
||||
setTimeout(() => {
|
||||
setChildInputFocus(secondInput.value?.$el, 'input');
|
||||
}, 50);
|
||||
});
|
||||
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user