Commit 480fcca
committed
fix: prevent attachment button click from triggering form submit
The Paperclip (attach files) button in GlobalConfigControls is rendered
inside the prompt form without an explicit type attribute. Since the
default button type in a form is 'submit', clicking it triggers a form
submission in addition to opening the file dialog.
Add type="button" to prevent the implicit form submit.
Fixes #14281 parent 7ba9695 commit 480fcca
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| |||
0 commit comments