diff --git a/lib/components/placeholder.js b/lib/components/placeholder.js index f66095799..70dfc0026 100644 --- a/lib/components/placeholder.js +++ b/lib/components/placeholder.js @@ -70,8 +70,8 @@ class Placeholder extends React.Component { const rect = nodeEl.getBoundingClientRect() el.style.pointerEvents = 'none' el.style.position = 'absolute' - el.style.top = `${rect.top}px` - el.style.left = `${rect.left}px` + el.style.top = `${window.scrollY + rect.top}px` + el.style.left = `${window.scrollX + rect.left}px` el.style.width = `${rect.width}px` el.style.height = `${rect.height}px` }