refactor: standardize 'prevent_default' helpers and batch format modules
- Renamed internal 'preventDefault' helpers to 'prevent_default' for project-wide snake_case consistency. - Corrected native event method calls from 'prevent_default()' to 'preventDefault()' to resolve runtime TypeErrors. - Applied batch formatting (printWidth: 80) to Journals and IDAA Recovery Meetings modules. - Removed deprecated 'preventDefault' imports from svelte/legacy. - Fixed Journal Entry 404 by migrating loader to V3 API helper.
This commit is contained in:
@@ -44,25 +44,25 @@
|
||||
});
|
||||
|
||||
function handle_drag_enter(e: DragEvent) {
|
||||
e.prevent_default();
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
is_dragging = true;
|
||||
}
|
||||
|
||||
function handle_drag_leave(e: DragEvent) {
|
||||
e.prevent_default();
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
is_dragging = false;
|
||||
}
|
||||
|
||||
function handle_drag_over(e: DragEvent) {
|
||||
e.prevent_default();
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
is_dragging = true;
|
||||
}
|
||||
|
||||
function handle_drop(e: DragEvent) {
|
||||
e.prevent_default();
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
is_dragging = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user