We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e06ee92 commit e798e4cCopy full SHA for e798e4c
src/components/pillSelector/pillSelectorControlled.tsx
@@ -34,7 +34,7 @@ const PillSelectorControlledComponent = React.forwardRef(
34
35
thumb.style.width = `${selectedPill?.clientWidth}px`;
36
thumb.style.height = `${selectedPill?.getBoundingClientRect().height}px`;
37
- thumb.style.left = `calc(${selectedPill?.getBoundingClientRect().left}px - ${window?.getComputedStyle(selectedPill)?.paddingLeft})`;
+ thumb.style.left = `${selectedPill.offsetLeft}px`;
38
}
39
};
40
0 commit comments