fix: allow clone: syntax on components (closes #2903) (#2928)

This commit is contained in:
Greg Johnston 2024-09-04 20:44:37 -04:00 committed by GitHub
parent 6001a93475
commit 000896b2f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -592,8 +592,8 @@ pub(crate) fn attribute_absolute(
match id { match id {
NodeNameFragment::Ident(id) => { NodeNameFragment::Ident(id) => {
let value = attribute_value(node); let value = attribute_value(node);
// ignore `let:` // ignore `let:` and `clone:`
if id == "let" { if id == "let" || id == "clone" {
None None
} else if id == "attr" { } else if id == "attr" {
let key = &parts[1]; let key = &parts[1];