Commit 060762a
committed
fix: prevent chat suggestions from submitting forms
A form-associated <button> defaults to type="submit", not type="button". The suggestion tiles trigger a chat action, so declaring type="button" keeps them inert if this prompt area is ever wrapped by a form.
Docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#type1 parent 5a31b51 commit 060762a
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
0 commit comments