We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2401701 commit 12aa26dCopy full SHA for 12aa26d
packages/yew/src/html/component/children.rs
@@ -197,7 +197,7 @@ where
197
/// children.map(|children| {
198
/// html! {
199
/// <div class={classes!("container")}>
200
- /// {children.clone()}
+ /// {children}
201
/// </div>
202
/// }
203
/// })
packages/yew/src/html/conversion/into_prop_value.rs
@@ -167,6 +167,13 @@ impl IntoPropValue<VNode> for ChildrenRenderer<VNode> {
167
}
168
169
170
+impl IntoPropValue<VNode> for &ChildrenRenderer<VNode> {
171
+ #[inline]
172
+ fn into_prop_value(self) -> VNode {
173
+ VNode::VList(Rc::new(self.clone().into()))
174
+ }
175
+}
176
+
177
impl IntoPropValue<ChildrenRenderer<VNode>> for VNode {
178
#[inline]
179
fn into_prop_value(self) -> ChildrenRenderer<VNode> {
0 commit comments