Template button submit not submitted
-
Hi everyone!
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 out the <template> and <q-input> form submitted. Can you help me?
Quasar v1.2.4<q-form @submit="sendMessage" class="full-width"> <q-input v-model="newMessage" bg-color="white" outlined rounded label="Message" dense> <template v-slot:after> <q-btn round dense flat type="submit" color="white" icon="send" /> </template> </q-input> </q-form>
-
noob suggestion here (trying to help) , how about @click ? then add event.
-
thanks i fix this problem
-
same me when upgrade to lastest version. just use @click and wait for next version
-
Thank you!
-
This post is deleted! -
i just add this @click=“sendMessage” to my botton as its inside of template or you take out the botton of the form tag