Skip to content

Commit e91cdc2

Browse files
committed
fix: hide cycle tips tooltip in comment mode
1 parent a250e44 commit e91cdc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-grab/src/core/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,9 @@ export const init = (rawOptions?: Options): ReactGrabAPI => {
23892389
items: actionCycleItems(),
23902390
activeIndex: actionCycleActiveIndex(),
23912391
isVisible:
2392-
actionCycleActiveIndex() !== null && actionCycleItems().length > 0,
2392+
actionCycleActiveIndex() !== null &&
2393+
actionCycleItems().length > 0 &&
2394+
!isCommentMode(),
23932395
}));
23942396

23952397
const arrowNavigationItems = createMemo(() =>

0 commit comments

Comments
 (0)