Skip to content

Commit

Permalink
fix: tab closing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dancixx committed May 20, 2024
1 parent 5da4f8b commit ba970bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dashboard/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ pub fn Dashboard() -> impl IntoView {
<span>{format!("Tab {}", index + 1)}</span>
<button
class="rounded-full p-1 hover:bg-gray-100"
on:click=move |_| { tabs_store.close_tab(index) }
on:click=move |e| {
e.stop_propagation();
tabs_store.close_tab(index)
}
>

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

0 comments on commit ba970bd

Please sign in to comment.