Skip to content
New issue

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

A custom element defined with definecustomelement cannot call its internally defined method when it is used externally #6173

Closed
varcyan opened this issue Jun 24, 2022 · 1 comment

Comments

@varcyan
Copy link

varcyan commented Jun 24, 2022

Vue version

3.2.37

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-izmuu4?file=src%2FApp.vue,src%2Fcustom.js,vite.config.js,src%2FButton.ce.vue,src%2Fmain.js&terminal=dev

Steps to reproduce

custom.js defines a custom element When used in app.vue, the method log defined in cannot be called

What is expected?

the method log defined in can be called

What is actually happening?

the method log defined in cannot be called

System Info

No response

Any additional comments?

No response

@LinusBorg
Copy link
Member

This is not a bug, it's simply not supported (and nothing in our docs say it would be)

This could be made possible if we decide to work a feature for #5540

@github-actions github-actions bot locked and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants