Skip to content

Commit

Permalink
fix: 修改 togglePlaceholder 判断逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxiaoleizi committed Apr 1, 2021
1 parent a5d3d41 commit 34981fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/text/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ class Text {
const html = this.html()
const $placeholder = this.editor.$textContainerElem.find('.placeholder')
$placeholder.hide()
if ((!html || html === ' ') && !this.editor.isComposing) $placeholder.show()
if (this.editor.isComposing) return
if (!html || html === ' ') $placeholder.show()
}

/**
Expand Down

0 comments on commit 34981fc

Please sign in to comment.