You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: the trait bound `leptos_style::Style: IntoAttributeValue` is not satisfied
--> packages/leptos/label/src/default.rs:21:24
|
19 | / view! {
20 | | <LabelPrimitive
21 | | attr:style=style.get()
| | ^^^^^^^^^^^ the trait `FnMut()` is not implemented for `leptos_style::Style`
... |
25 | | </LabelPrimitive>
26 | | }
| |_____- required by a bound introduced by this call
|
= note: required for `leptos_style::Style` to implement `ReactiveFunction`
= note: required for `leptos_style::Style` to implement `AttributeValue`
= note: required for `leptos_style::Style` to implement `IntoAttributeValue`
There is an option to use .to_string() which solves the problem but add unnecessary verbose into the code.
I have set up a small PR implementing IntoAttributeValue.
The text was updated successfully, but these errors were encountered:
Case:
gives me the error:
There is an option to use
.to_string()
which solves the problem but add unnecessary verbose into the code.I have set up a small PR implementing IntoAttributeValue.
The text was updated successfully, but these errors were encountered: