Skip to content

Commit

Permalink
Revert client template, removing unintended changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bicarlsen committed Apr 16, 2024
1 parent 9df416f commit 10f4c21
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions leptos_macro/src/view/client_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,19 +321,14 @@ fn attr_to_tokens(
// Classes
else if let Some(name) = name.strip_prefix("class:") {
let value = attribute_value(node);
match value {
syn::Expr::Lit(value) => {
todo!();
}

_ => expressions.push(quote_spanned! {
span=> ::leptos::leptos_dom::class_helper(
::leptos::wasm_bindgen::JsCast::unchecked_ref(&#el_id),
#name.into(),
::leptos::IntoClass::into_class(#value),
)
}),
};
expressions.push(quote_spanned! {
span=> ::leptos::leptos_dom::class_helper(
::leptos::wasm_bindgen::JsCast::unchecked_ref(&#el_id),
#name.into(),
::leptos::IntoClass::into_class(#value),
)
});
}
// Attributes
else {
Expand Down

0 comments on commit 10f4c21

Please sign in to comment.