Panics · P07 Navigation: Wizard takes its handlers; stale places in tabs, crumbs, history, steps and pages mark none

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 17:06:25 -04:00
1 parent e2d880fb4f
commit 919f26fcc6
14 files changed
+261 -83

No files matched your search

+8 -4
View File
@@ -108,10 +108,14 @@ pub fn steps(window: &mut Window, cx: &mut App) -> impl IntoElement + use<> {
probe(
"wizard",
div().w(px(560.0)).child(
Wizard::new("wizard", setup_steps(), now)
.content(div().h(px(72.0)).child(Paragraph::new(body)))
.on_step(move |to, _, cx| set(&walk, to, cx))
.on_finish(move |_, cx| set(&finish, true, cx)),
Wizard::new(
"wizard",
setup_steps(),
now,
move |to, _, cx| set(&walk, to, cx),
move |_, cx| set(&finish, true, cx),
)
.content(div().h(px(72.0)).child(Paragraph::new(body))),
),
),
cx,