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::prelude::MaybeProp<std::string::String>: leptos::prelude::IntoAttributeValue` is not satisfied
--> packages/leptos/button/src/default.rs:115:20
|
114 | / view! {
115 | | <button id=id>
| | ^^ the trait `FnMut()` is not implemented for `leptos::prelude::MaybeProp<std::string::String>`, which is required by `leptos::prelude::MaybeProp<std::string::String>: leptos::prelude::IntoAttributeValue`
116 | | {children()}
117 | | </button>
118 | | }
| |_____- required by a bound introduced by this call
|
= note: required for `leptos::prelude::MaybeProp<std::string::String>` to implement `leptos::tachys::reactive_graph::ReactiveFunction`
= note: required for `leptos::prelude::MaybeProp<std::string::String>` to implement `leptos::attr::AttributeValue`
= note: required for `leptos::prelude::MaybeProp<std::string::String>` to implement `leptos::prelude::IntoAttributeValue`
Describe the bug
Passing a
MaybeProp
as attribute gives an error:However, manually calling
.get()
works fine:Leptos Dependencies
Please copy and paste the Leptos dependencies and features from your
Cargo.toml
.Expected behavior
I would expect
MaybeProp
to be accepted as is, without manually calling.get()
.The text was updated successfully, but these errors were encountered: