Skip to content

Commit 2c1724d

Browse files
committed
fix: default cursors to true
1 parent 2c2dd31 commit 2c1724d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Cursors.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ function defaultCursor(options: CursorOptions): ResolvedCursorOptions {
3434
export default function Cursors<TDatum>() {
3535
const { getOptions } = useChartContext<TDatum>()
3636

37-
let primaryOptions = getOptions().primaryCursor
38-
let secondaryOptions = getOptions().secondaryCursor
37+
let primaryOptions = getOptions().primaryCursor ?? true
38+
let secondaryOptions = getOptions().secondaryCursor ?? true
3939

4040
const resolvedPrimaryOptions = React.useMemo(
4141
() =>

0 commit comments

Comments
 (0)