Skip to content

Commit 38b98fd

Browse files
committed
fix(legend): disable pointer events on legend root
1 parent db92f41 commit 38b98fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/solid-uplot/src/__tests__/SolidUplot.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ describe("PLUGIN: legend", () => {
650650
expect(legendContainer).toHaveStyle({
651651
position: "absolute",
652652
"z-index": "10",
653-
"pointer-events": "auto",
653+
"pointer-events": "none",
654654
padding: "10px",
655655
});
656656
});
@@ -685,7 +685,7 @@ describe("PLUGIN: legend", () => {
685685
expect(legendContainer).toHaveStyle({
686686
position: "absolute",
687687
"z-index": "10",
688-
"pointer-events": "auto",
688+
"pointer-events": "none",
689689
});
690690
});
691691
});

packages/solid-uplot/src/plugins/legend.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export const legend = (
123123
"max-width": `${overRect.width - offset * 2}px`,
124124
"max-height": `${overRect.height - offset * 2}px`,
125125
"z-index": containerProps.zIndex,
126-
"pointer-events": "auto" as const,
126+
"pointer-events": "none" as const,
127127
overflow: "auto" as const,
128128
...containerProps.style,
129129
};

0 commit comments

Comments
 (0)