Skip to content

Commit

Permalink
fix: css parent position
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Jul 9, 2021
1 parent 4ca703a commit 0dd9a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function Chart<TDatum>({
if (parentElement) {
const computed = window.getComputedStyle(parentElement)

if (!['relative', 'absolute', 'fixed'].includes(computed.display)) {
if (!['relative', 'absolute', 'fixed'].includes(computed.position)) {
parentElement.style.position = 'relative'
}
}
Expand Down

0 comments on commit 0dd9a78

Please sign in to comment.