We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
/quasar/src/utils/private/vm.js
when use <script setup> the child component get the parent component, proxy.$parent is {} must use proxy.$.parent.proxy get parent component
so i added && typeof vm.$parent !== 'object'
export function getParentVm (vm) { if (vm.$parent !== void 0 && vm.$parent !== null && typeof vm.$parent !== 'object') { return vm.$parent } vm = vm.$.parent while (vm !== void 0 && vm !== null) { if (vm.proxy !== void 0 && vm.proxy !== null) { return vm.proxy } vm = vm.parent } }
or
import { useContext,getCurrentInstance } from 'vue' const ctx = useContext() @ts-ignore const { proxy } = getCurrentInstance() ctx.expose(proxy)
The text was updated successfully, but these errors were encountered:
Hi @wb670 ,
Can you create a reproduction repo pls? Trying to understand what you are doing.
Sorry, something went wrong.
fix(ui): cover corner-case for Quasar portals with script setup #9880
39d7c18
Enhancement will be available in Quasar v2.3.0.
No branches or pull requests
/quasar/src/utils/private/vm.js
when use <script setup>
the child component get the parent component, proxy.$parent is {}
must use proxy.$.parent.proxy get parent component
so i added && typeof vm.$parent !== 'object'
or
The text was updated successfully, but these errors were encountered: