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

Include host component ID in default outlet selector #7

Merged
merged 1 commit into from
Feb 25, 2024

Conversation

fiznool
Copy link
Contributor

@fiznool fiznool commented Feb 22, 2024

Prior to this change, any elements in the document matching the generated selector will be attached as an outlet. This is likely not the desired behaviour in a view component setup - you probably on;ly want to attach elements that are children of the host component.

The change here scopes the generated selector to only include child elements, by using the generated ID of the host component to scope the selector.

@stevegeek stevegeek merged commit e4e02fa into stevegeek:main Feb 25, 2024
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants