mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-03 17:39:11 +00:00
change empty outlet to placeholder instead of div
This commit is contained in:
parent
af6362ce3e
commit
83f6984b0a
1 changed files with 2 additions and 2 deletions
|
@ -108,8 +108,8 @@ pub fn Outlet(cx: Scope<OutletProps>) -> Element {
|
|||
cx.render(match content {
|
||||
Some(content) => {
|
||||
let X = content.0;
|
||||
rsx! { X { } }
|
||||
rsx!(X {})
|
||||
}
|
||||
None => rsx! { div { } },
|
||||
None => rsx!(()),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue