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

props defined in extended component's mixins are not registered #196

Open
thedamon opened this issue Mar 4, 2020 · 0 comments
Open

props defined in extended component's mixins are not registered #196

thedamon opened this issue Mar 4, 2020 · 0 comments
Assignees

Comments

@thedamon
Copy link

thedamon commented Mar 4, 2020

In a setup where a component defines a prop through a mixin, the web-component that extends that component does not have access to the mixin's props

Pseudocode:

const mixin = { props: { 'test' } };

const base = {
 name: 'v-base',
 mixins: [mixin]
};

const extender = {
 name: 'v-extender',
 extends: base
}


const mixiner = {
 name: 'v-extender',
 extends: base,
 mixins: [mixin]
}

extender.test // <-- not defined
mixiner.test // <-- works

It's straightforward to work around this and may just be something that was never consciously implemented?

@karol-f karol-f self-assigned this Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants