Skip to content

Commit 0dd9a78

Browse files
committed
fix: css parent position
1 parent 4ca703a commit 0dd9a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function Chart<TDatum>({
9595
if (parentElement) {
9696
const computed = window.getComputedStyle(parentElement)
9797

98-
if (!['relative', 'absolute', 'fixed'].includes(computed.display)) {
98+
if (!['relative', 'absolute', 'fixed'].includes(computed.position)) {
9999
parentElement.style.position = 'relative'
100100
}
101101
}

0 commit comments

Comments
 (0)