Skip to content

Commit c13cc5d

Browse files
committed
refactor feedback
1 parent e211b9c commit c13cc5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/FeedbackForm.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ import { Icon } from 'astro-icon/components';
7676

7777
form!.querySelectorAll('button[type="submit"]').forEach(button => {
7878
button.addEventListener('click', function(e) {
79-
submitValueField!.value = (e.target as HTMLButtonElement).getAttribute('data-value')!;
79+
submitValueField!.value = (e.currentTarget as HTMLButtonElement).getAttribute('data-value')!;
8080
});
8181
});
8282
</script>

0 commit comments

Comments
 (0)