From 751b36cf1ea23ba61316b7a3c7ca37130a3ae4e6 Mon Sep 17 00:00:00 2001 From: PP Date: Wed, 25 Jul 2018 12:54:32 +0800 Subject: [PATCH] fix editbox show multi labels when editing (#3015) --- cocos2d/core/components/editbox/CCEditBox.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cocos2d/core/components/editbox/CCEditBox.js b/cocos2d/core/components/editbox/CCEditBox.js index 0238478c51..2c6c7dae2e 100644 --- a/cocos2d/core/components/editbox/CCEditBox.js +++ b/cocos2d/core/components/editbox/CCEditBox.js @@ -482,7 +482,9 @@ let EditBox = cc.Class({ textLabel.string = displayText; this._impl.setString(text); - this._showLabels(); + if (!this._impl._editing) { + this._showLabels(); + } }, _updateLabelStringStyle (text, ignorePassword) {