Skip to content

Commit

Permalink
fixed #24
Browse files Browse the repository at this point in the history
  • Loading branch information
oxdc committed Sep 1, 2024
1 parent ab91d91 commit 61ef03d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "vertical-tabs",
"name": "Vertical Tabs",
"version": "0.6.7",
"version": "0.6.8",
"minAppVersion": "1.6.2",
"description": "Offer an alternative view that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.",
"author": "oxdc",
Expand Down
4 changes: 3 additions & 1 deletion src/components/NavigationTreeItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ interface NavigationTreeItemProps {
isHighlighted?: boolean;
children?: React.ReactNode;
toolbar?: React.ReactNode;
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
onClick?: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
onTouchEnd?: (event: React.TouchEvent<HTMLDivElement>) => void;
onAuxClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
onDoubleClick?: (
event: React.MouseEvent<HTMLDivElement, MouseEvent>
Expand Down Expand Up @@ -85,6 +86,7 @@ export const NavigationTreeItem = (props: NavigationTreeItemProps) => {
<div
className={toClassName(selfElClasses)}
onClick={props.onClick}
onTouchEnd={props.onTouchEnd}
onAuxClick={props.onAuxClick}
onDoubleClick={props.onDoubleClick}
onContextMenu={props.onContextMenu}
Expand Down
1 change: 1 addition & 0 deletions src/components/Tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export const Tab = ({ leaf }: TabProps) => {
{...props}
toolbar={toolbar}
onClick={activeOrCloseTab}
onTouchEnd={openTab}
onAuxClick={midClickCloseTab}
onDoubleClick={closeTab}
onContextMenu={(e) => menu.showAtMouseEvent(e.nativeEvent)}
Expand Down

0 comments on commit 61ef03d

Please sign in to comment.