Closed haaah closed 6 months ago
it seems that the bug is introduced after upgrade to quasar 2.14.0.
Use slots https://codepen.io/Cody-B/pen/OJdYwpe
in my example, you can remove the slot after the button which is a send icon. This will produce the result you are looking for.
Hi @cbluth95 The example you provide will still trigger both click event.
My expectation is
That's why i'm reporting this as bug.
I believe my issue is similar to #16589
Use @click.prevent="onClickA"
@pdanpdan How do you accomplish this when using a QOptionGroup inside a QField? Do you agree this is actually a bug (cf: #16883 and #16589)? If so, I don't think it should be closed...
I've made a simple example here, with the workaround from those other bugs: https://codepen.io/dsl101/pen/vYPqLPR?editors=1011
I am trying to implement resumable.js with QField component. resumable.js inserts input file element. I have no way to put @click.prevent there, since the input is managed by the third party library. And on click the the input is fired twice, once from the "normal" event listener, and once from the QField component.
A workaround would be to add a hidden button at the top of the slot:
<template #control>
<q-btn v-show="false"></q-btn>
The rest of the content here.
</template>
What happened?
Clicking on the qitem triggers a second click event which belong to another component.
What did you expect to happen?
Clicking on the qitem should only trigger 1 event.
Reproduction URL
https://codepen.io/haaah/pen/bGzzXJz
How to reproduce?
Flavour
Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)
Areas
Components (quasar), SPA Mode
Platforms/Browsers
Firefox, Chrome
Quasar info output
Relevant log output
No response
Additional context
No response