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

Can't reference #[template_child] elements to clone within signals #545

Open
rharish101 opened this issue Sep 28, 2023 · 0 comments
Open

Comments

@rharish101
Copy link

Consider the following code:

#[template_child]
foo {
    ...
}
#[template_child]
bar {
    ...
    connect_changed[sender, foo] => move |this| {
        ...
    }
}

This used to work in 0.5.0, but fails with 0.6.x and the latest main branch.

@rharish101 rharish101 changed the title Can't reference #[template_child] elements within signals Can't reference #[template_child] elements to clone within signals Sep 28, 2023
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

No branches or pull requests

1 participant