Open ppawlak opened 8 years ago
I have been told by people experiencing those errors that the virtual keyboard on their device is not popping up, and are therefore unable to input text.
changing
if(window.Window && Window.prototype.prompt != prompt){
userInput = Window.prototype.prompt.call(window, tipMessage, this._currentInputString);
}else{
userInput = prompt(tipMessage, this._currentInputString);
}
to
var realPrompt = prompt || window.prompt || Window.prototype.prompt;
var userInput = realPrompt(tipMessage, this._currentInputString);
fixes the problem.
Using Cocos2d-JS v3.10, I had errors on some mobile devices with the UITextField component.
First error:
this happens with this User-Agent
Mozilla/5.0 (Linux; Android 4.2.2; GT-S7275R Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.95 Mobile Safari/537.36
Second error:
this happens with this User-Agent
Mozilla/5.0 (Android 4.1.1; Mobile; rv:44.0) Gecko/44.0 Firefox/44.0