Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Custom components in QueryBuilderRule this.id got undefined #45

Open
mattwmj opened this issue Jun 19, 2019 · 2 comments
Open

Custom components in QueryBuilderRule this.id got undefined #45

mattwmj opened this issue Jun 19, 2019 · 2 comments

Comments

@mattwmj
Copy link

mattwmj commented Jun 19, 2019

I am using custom components and it all works properly.

When I debug line 68 of QueryBuilderRule:
this.$options.components[this.id] = this.rule.component;
this.id is undefined.

I am curious about this line. How does it work? Is this undefined at purpose?

Thank you.

@dabernathy89
Copy link
Owner

I think this may have been a mistake I didn't catch during a merge request. I'll take a look ASAP!

@mattwmj
Copy link
Author

mattwmj commented Jun 21, 2019

Thank you for your attention.

I want to ask something related to this custom-component feature.

Let's say I have a custom component A with prop AProp. I want to set AProp value before put it into rule.component. How can I achieve that?

I tried to call component A.props.AProp = 'somevalue' but did not work.

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