Bug fixes for form save. Use custom preventDefault function.

This commit is contained in:
Scott Idem
2025-07-09 19:25:58 -04:00
parent b030c0eec4
commit 770e48842b
5 changed files with 46 additions and 50 deletions

View File

@@ -245,7 +245,7 @@ if (lu_country_subdivision_list && lu_country_subdivision_list.length > 50 && Ma
$effect(() => {
if ($idaa_slct.event_obj) {
if ($idaa_slct.event_obj) {
if (log_lvl) {
console.log('Selected Event object changed?', $idaa_slct.event_obj);
}
@@ -256,8 +256,14 @@ $effect(() => {
disable_submit_btn = false;
}
}
});
});
function preventDefault(fn) {
return function (event) {
event.preventDefault();
fn.call(this, event);
};
}
async function handle_submit_form(event: any) {
console.log('*** handle_submit_form() ***');
@@ -629,22 +635,6 @@ function send_staff_notification_email() {
});
}
/*
<div>
Poster's Novi ID: ${$idaa_slct.event_obj.external_person_id ?? '-- not set --'}<br>
Poster's Name: ${$idaa_slct.event_obj.full_name ?? '-- not set --'}<br>
Poster's Email: ${$idaa_slct.event_obj.email ?? '-- not set --'}
</div>
*/
function preventDefault(fn) {
return function (event) {
event.preventDefault();
fn.call(this, event);
};
}
$effect(() => {
if (orig_event_obj === null || orig_event_obj === undefined || orig_event_obj === 'undefined') {
obj_changed = false;