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

Button with v-if triggers event on v-else button when clicked using form #9866

Closed
andersmar opened this Issue Apr 12, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@andersmar
Copy link

andersmar commented Apr 12, 2019

Version

2.6.10

Reproduction link

https://jsfiddle.net/txnamgy8/1/

Steps to reproduce

Click the button

What is expected?

Clicking the button should swap out "button" button with a "submit" button.
The button should change to "Submit" button which will submit form when clicked.

What is actually happening?

The form submit is triggered when "button" is pressed.


Suspect it is a focus issue.
Method worked before updating to Vue v2.6.10.
Form works as expected when using new v-slots

@posva

This comment has been minimized.

Copy link
Member

posva commented Apr 12, 2019

Duplicate of #9340

@posva posva marked this as a duplicate of #9340 Apr 12, 2019

@posva posva closed this Apr 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.