Skip to content

Commit

Permalink
fix: form not emitting on change on safari (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuagraber authored Nov 13, 2024
1 parent 3af1108 commit 69f8898
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion src/components/FormV2/PdapFormV2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
:name="name"
class="pdap-form"
@submit.prevent="submit"
@change="emit('change', values, $event)"
@input.prevent="change"
@change.prevent="change"
>
<slot v-if="$slots.error" name="error" />
<div
Expand Down Expand Up @@ -68,6 +69,10 @@ function resetForm() {
};
}, {});
}
function change(event: Event) {
emit('change', values.value, event);
}
async function submit(e: Event) {
// Check form submission
const isValidSubmission = await v$.value.$validate();
Expand Down

0 comments on commit 69f8898

Please # to comment.