From 3145a6b085f99cbbb343664a2b79cd857fad4c2a Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Thu, 21 Jul 2016 10:27:42 -0700 Subject: [PATCH] fix to not update placeholder before one exists --- lib/components/placeholder.js | 2 ++ 1 file changed, 2 insertions(+) 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'