fix cannot switch between hours, minutes and seconds by pressing the tab (#554)

This commit is contained in:
MaysWind
2026-04-13 22:35:31 +08:00
parent 63ec0e4424
commit 4af0797051
@@ -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;
}
}