Bug editbox when delaycall

Hi all, i use editbox in component Popup Layer. When i call hide popup, i call delaycall and when complete i call visible popup. But i see text of editbox visible, but other image not visible. Why? Please see picture and code
this.txtEditMoneyTai = new cc.EditBox(cc.size(200, 70), new cc.Scale9Sprite(“Image/button.png”, new cc.Rect(54, 18, 90, 40)));
this.txtEditMoneyTai.font = res.RobotoBold;
this.txtEditMoneyTai.fontName = “Roboto-Bold”;
this.txtEditMoneyTai.fontSize = 16;
this.txtEditMoneyTai.setDelegate(this);
this.txtEditMoneyTai.setPlaceHolder(“0”);
this.txtEditMoneyTai.anchorX = 0;
this.txtEditMoneyTai.anchorY = 0;
this.txtEditMoneyTai.setInputMode(cc.EDITBOX_INPUT_MODE_PHONENUMBER);
this.addChild(this.txtEditMoneyTai);
this.txtEditMoneyTai.x = 300;
this.txtEditMoneyTai.y = 300;
var self = this;
setTimeout(function(){
self.visible = false;
}, 500);

Beforedelaycall

After delaycall

Please help me. Thanks

Please help support…

Hello @ngocanh89,

I didn’t understand properly.
You have created Editbox.
When i call hide Popup, You need to hide Editbox.
When visible Pop up call, You need to make visible. Am i right?

Can you show the piece of code for implementation of Hide & Visible

Regards,
Gurudath

Hi. I create a Layer Popup CreateRoom. Popup include a editbox ( passwork ) and button, label… When i show popup, i start timer countdown 5,4,3,2,1. When countdown = 0, i call popup.visible = false. But have bug same picture. Label editbox visible, but other component ( button, label, background editbox… ) not hide :frowning: You understand?

@ngocanh89,

Can you try with this: this.txtEditMoneyTai.visible = false;

I need hide all popup, i use self = this, this is popup. i use self.visible = false. If popup not addChild editbox. popup is visible. :frowning: but i add edibox, popup not visible :frowning: you understand? I think you create project test. You understand now :smiley:

Hi @ngocanh89,

I spend some time on the code.
Yeah Its Bug. When we add Editbox then setvisible function will not work properly. You can report this issue.

For time being you can disable the editbox before making visible off.
i.e

this._box2.setEnabled(false);
this.setVisible(false);

This trick works fine.

Regards,
Gurudath

Hi thanks you. This is works fine :stuck_out_tongue: :stuck_out_tongue: Thanks you very much :stuck_out_tongue: