Skip to content

Commit ba970bd

Browse files
committed
fix: tab closing bug
1 parent 5da4f8b commit ba970bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dashboard/index.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ pub fn Dashboard() -> impl IntoView {
2626
<span>{format!("Tab {}", index + 1)}</span>
2727
<button
2828
class="rounded-full p-1 hover:bg-gray-100"
29-
on:click=move |_| { tabs_store.close_tab(index) }
29+
on:click=move |e| {
30+
e.stop_propagation();
31+
tabs_store.close_tab(index)
32+
}
3033
>
3134

3235
<Icon icon=icondata::CgClose width="16" height="16"/>

0 commit comments

Comments
 (0)