mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #983 from zilongshanren/fix-editbox-label-create-issue
fix editbox placeholder change error
This commit is contained in:
@@ -248,6 +248,7 @@ _ccsg.EditBox = _ccsg.Node.extend({
|
||||
this._placeholderColor = cc.Color.GRAY;
|
||||
|
||||
this.initWithSizeAndBackgroundSprite(size, normal9SpriteBg);
|
||||
this._renderCmd._createLabels();
|
||||
},
|
||||
|
||||
_createRenderCmd: function () {
|
||||
@@ -991,7 +992,6 @@ _ccsg.EditBox.KeyboardReturnType = KeyboardReturnType;
|
||||
proto.createNativeControl = function() {
|
||||
this._createDomTextArea();
|
||||
this._addDomInputControl();
|
||||
this._createLabels();
|
||||
};
|
||||
|
||||
proto._addDomInputControl = function () {
|
||||
|
||||
Reference in New Issue
Block a user