in
operator not working correctly with component instance exposeProxy
#6137
Labels
🐞 bug
Something isn't working
Vue version
3.2.37
Link to minimal reproduction
https://stackblitz.com/edit/vuejs-issue-repro-in-operator-expose-proxy?file=src%2FApp.vue
Steps to reproduce
expose({...})
in thesetup()
function.templateRef.value
in the mounted hook.What is expected?
What is actually happening?
System Info
No response
Any additional comments?
core/packages/runtime-core/src/component.ts
Lines 934 to 949 in 25f7a16
I suspect that the
exposeProxy
which uses theget()
handler needs to implement the same logic in the Proxy'shas()
handler to fallback to checking if the checked property is defined inpublicPropertiesMap[key](instance)
.The text was updated successfully, but these errors were encountered: