cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deyan Vitanov (JIRA)" <>
Subject [jira] [Commented] (CB-11110) WP app crashes when focusOut text input
Date Tue, 19 Apr 2016 16:15:25 GMT


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() {
	window.TextInputInstances.forEach(function(inst) {
	if (document.activeElement != inst.domElement) return; = 'none';
	setTimeout(function() { = 'block';
		}.bind(this), 0);

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:
>             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 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:

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message