add function syntax to sveltestrap onclick events and others

- fixes event_handler_invalid svelte warning and blockage
This commit is contained in:
Christoph Kluge
2025-02-04 12:13:06 +01:00
parent 2b23003556
commit aaafde4a7c
12 changed files with 18 additions and 18 deletions

View File

@@ -119,13 +119,13 @@
class="btn btn-primary"
type="button"
id="add-role-button"
on:click|preventDefault={handleAddRole}>Add</button
on:click|preventDefault={() => handleAddRole}>Add</button
>
<button
class="btn btn-danger"
type="button"
id="remove-role-button"
on:click|preventDefault={handleRemoveRole}>Remove</button
on:click|preventDefault={() =>handleRemoveRole}>Remove</button
>
</div>
<p>