Skip to content

Commit

Permalink
fixing fn tab after Passing Server Children to Islands heading to if …
Browse files Browse the repository at this point in the history
…selected()==index (leptos-rs#44)
  • Loading branch information
rlovell3 committed Jan 12, 2024
1 parent 1aba8e5 commit 69c7c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/islands.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ And let’s modify the `Tab` island to use that context to show or hide itself:
fn Tab(children: Children) -> impl IntoView {
let selected = expect_context::<ReadSignal<usize>>();
view! {
<div style:display=move || if selected() {
<div style:display=move || if selected() == index {
"block"
} else {
"none"
Expand Down

0 comments on commit 69c7c37

Please sign in to comment.