Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The edit/remove buttons should not be submittable #100

Merged
merged 1 commit into from
Jul 15, 2019

Conversation

SebastienTainon
Copy link
Contributor

Hello,

When the user has picked an image, the buttons to modify or remove this image appear. If, further down in the form, the user presses "Enter" to submit the form, the event is picked by the first submit button which is the vue-picture-input "modify image" button, and not our form submit button. So it triggers the file select window instead of submitting the form.

This PR fixes this behaviour by setting these buttons on the type "button" instead of the default "submit".

Thanks!

Hello,
When the user has picked an image, the buttons to modify or remove this image appear. If, further down in the form, the user presses "Enter" to submit the form, the event is picked by the first submit button which is the vue-picture-input "modify image" button.
This PR fixes this behaviour by setting these buttons on the type "button" instead of the default "submit".
Thanks!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants