v-ripple crash with vue 3.2.32+ with composition API #13732
Labels
area/directives
bug/1-hard-to-reproduce
A reproduction is available, but it's hard to reproduce, so it has a lower priority.
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
📤 external lib issue
Qv2 🔝
Quasar v2 issues
What happened?
Using vue 3.2.32 or later and the vue composition API (
<script setup>
), addingv-ripple
to an element such asq-item
results in a crash with errorTypeError: Cannot read properties of undefined (reading 'config')
The workaround, as found by @Trinovantes (#13154 (comment)), is to expose
$q
viadefineExpose()
in any component wherev-ripple
is used:The components that accept
v-ripple
should be modified to automatically expose $q so that we don't have to use this workaround.What did you expect to happen?
v-ripple
should work without the workaround detailed above.Reproduction URL
https://github.com/NGPixel/broken-quasar-vripple-proof
How to reproduce?
yarn
yarn dev
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Directives (quasar)
Platforms/Browsers
Firefox, Chrome, Safari, Microsoft Edge
Quasar info output
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: