diff --git a/lib/components/placeholder.js b/lib/components/placeholder.js index 4e9eae0ac..4c5a7fb5a 100644 --- a/lib/components/placeholder.js +++ b/lib/components/placeholder.js @@ -102,6 +102,8 @@ class Placeholder extends React.Component { updatePosition = () => { const { node } = this.props const { placeholder } = this.tmp + if (!placeholder) return + const el = findDOMNode(node) const rect = el.getBoundingClientRect() placeholder.style.pointerEvents = 'none'