1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-25 16:20:49 +02:00

fix to not update placeholder before one exists

This commit is contained in:
Ian Storm Taylor
2016-07-21 10:27:42 -07:00
parent 40bfc805c4
commit 3145a6b085

View File

@@ -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'