[
https://issues.apache.org/jira/browse/CB-11110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15248067#comment-15248067
]
Deyan Vitanov commented on CB-11110:
------------------------------------
It is not a typo. It updates dom element's style.display property.
I've found the core of the problem.
It was this code:
var focusStage = function() {
this.renderer.view.focus();
window.TextInputInstances.forEach(function(inst) {
if (document.activeElement != inst.domElement) return;
inst.domElement.style.display = 'none';
setTimeout(function() {
inst.domElement.style.display = 'block';
resizeCanvas();
window.scrollTo(0,0);
}.bind(this), 0);
}.bind(this));
}.bind(this);
this.renderer.view.addEventListener('mousedown', focusStage);
this.renderer.view.addEventListener('touchstart', focusStage);
The sestTimeout causes it. I am not sure what is it suppose to do (it is not my
code) but that is what causes the problem.
> WP app crashes when focusOut text input
> ---------------------------------------
>
> Key: CB-11110
> URL: https://issues.apache.org/jira/browse/CB-11110
> Project: Apache Cordova
> Issue Type: Bug
> Components: WP8 (deprecated)
> Environment: Windows Phone 8, Windows Phone 10, Emulator
> Reporter: Deyan Vitanov
> Priority: Blocker
> Labels: triaged, wp8
>
> I have a Cordova app that works great on Android and iOS, but the same code
> on windows phone 8 and 1 has this issue.
> When I touch the input - the keyboard appears and I can enter text.
> But when I click outside the input (the game canvas) - the game freezes.
> All buttons become unclickable and there is nothing in the console.
> I can only drag the webview - but nothing more. The keyboard does not go
> away..the input is freezed..no errors.
> I tried with cordova 6.0.1 ro 5.1.1 - no difference (bug is present)
> It freezes on phones and emulators.
> Here is screenshot: https://www.dropbox.com/s/5rv34q3a5sl5cwx/emu.png?dl=0
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]