We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e211b9c commit c13cc5dCopy full SHA for c13cc5d
src/components/FeedbackForm.astro
@@ -76,7 +76,7 @@ import { Icon } from 'astro-icon/components';
76
77
form!.querySelectorAll('button[type="submit"]').forEach(button => {
78
button.addEventListener('click', function(e) {
79
- submitValueField!.value = (e.target as HTMLButtonElement).getAttribute('data-value')!;
+ submitValueField!.value = (e.currentTarget as HTMLButtonElement).getAttribute('data-value')!;
80
});
81
82
</script>
0 commit comments