Image: preview button is missing type="button"
and submits forms by default
#4249
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
I noticed that the preview button inside Image component is missing the
type="button"
. This leads to form submissions if the image component is used within the form.Is this behavior intentional?
Reproducer
https://codesandbox.io/p/sandbox/boring-varahamihira-f9lwzx
PrimeVue version
3.31.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The text was updated successfully, but these errors were encountered: