From 000896b2f7d73d609cb02dcb4da04f96eed231ca Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Wed, 4 Sep 2024 20:44:37 -0400 Subject: [PATCH] fix: allow `clone:` syntax on components (closes #2903) (#2928) --- leptos_macro/src/view/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leptos_macro/src/view/mod.rs b/leptos_macro/src/view/mod.rs index ebf571ad9..f3f85c66e 100644 --- a/leptos_macro/src/view/mod.rs +++ b/leptos_macro/src/view/mod.rs @@ -592,8 +592,8 @@ pub(crate) fn attribute_absolute( match id { NodeNameFragment::Ident(id) => { let value = attribute_value(node); - // ignore `let:` - if id == "let" { + // ignore `let:` and `clone:` + if id == "let" || id == "clone" { None } else if id == "attr" { let key = &parts[1];