prevent billable rate change modals from immediately sumbitting when pressing enter on the previous form

This commit is contained in:
Gregor Vostrak
2025-04-23 14:24:36 +02:00
parent a0a8a7f772
commit 7b82bf660b
3 changed files with 12 additions and 3 deletions

View File

@@ -48,7 +48,10 @@ const project = ref<CreateProjectBody>({
async function submit() {
if (props.originalProject.billable_rate !== project.value.billable_rate) {
showBillableRateModal.value = true;
//
setTimeout(() => {
showBillableRateModal.value = true;
}, 0);
return;
}
await updateProject(props.originalProject.id, project.value);