The method call when the text is changed, then I do some validation and try to insert the modified value, but get a text overlay in android device:
this.editBoxTextChanged = function(editBox, text) {
if (text != this.current) {
if (text == '') {
this.current = 0;
} else {
var value = parseInt(text);
if (!isNaN(value) && value >= 0 && value <= this.max) {
this.current = value;
}
editBox.setString(this.current);
}
}
};
version of cocos2d - Cocos2d-JS v3.13.1