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

template's button not submitted #5358

Closed
bodamat opened this issue Oct 20, 2019 · 3 comments
Closed

template's button not submitted #5358

bodamat opened this issue Oct 20, 2019 · 3 comments

Comments

@bodamat
Copy link

bodamat commented Oct 20, 2019

Good evening! I find a bug!
I use component input with send button. I add attribute type=“submit” to q-btn and add @submit to q-form. When I click button form not submitted, but when q-btn outside the and form submitted. Can you help me, please?
Quasar v1.2.4

It worked in latest version. I see in video, where version 1.0.5.
This video: https://youtu.be/gw4bSyBgZsQ?t=752

https://codesandbox.io/embed/codesandbox-app-7bs6u (in 'pages/Index.vue')

P.S. When you uncomment q-btn out q-input than it work, but button needs in q-input.

@pdanpdan
Copy link
Collaborator

Click event is prevented now to propagate outside of append, prepend, before and after slots.
Just add a @click event that calls sendMessage like here https://codesandbox.io/s/codesandbox-app-m958u

@bodamat
Copy link
Author

bodamat commented Oct 21, 2019

Thank you very much!

@smolinari
Copy link
Collaborator

I just want to note, I also asked @bodamat to post the issue. I had thought about just adding the @click event to the button, but wasn't certain, as the video had shown it working before without it. Thank you Dan for sorting the solution out.

Scott

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants