Commit d9f04d2
committed
fix: prevent attachment button click from triggering form submit
Clicking the attachment button in the web UI inadvertently
triggers a form submit, sending the current input text before
the file dialog opens.
Add preventDefault() and stopPropagation() to the click handler
to ensure only the file dialog is opened without side effects.
Fixes #14281 parent 94212ea commit d9f04d2
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
0 commit comments