You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Steven Santa Maria (JIRA)" <ji...@apache.org> on 2018/04/19 21:05:00 UTC
[jira] [Created] (CB-14044) Cannot click on page after typing in
inappbrowser in ios
Steven Santa Maria created CB-14044:
---------------------------------------
Summary: Cannot click on page after typing in inappbrowser in ios
Key: CB-14044
URL: https://issues.apache.org/jira/browse/CB-14044
Project: Apache Cordova
Issue Type: Bug
Components: cordova-ios
Environment: ios build to iphone 8 plus platform, then use xcode simulator
{code:java}
// index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link rel="stylesheet" type="text/css" href="css/index.css">
<title>Hello World</title>
</head>
<body>
<div class="app">
<h1>Apache Cordova</h1>
<div id="deviceready" class="blink">
<p class="event listening">Connecting to Device</p>
<p class="event received">Device is Ready</p>
<button id='connect'>Click here to launch</button>
<a href="http://www.google.com">A Google link for testing</a>
</div>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
</body>
</html>
{code}
{code:java}
// index.js
var app = {
// Application Constructor
initialize: function() {
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
},
// deviceready Event Handler
//
// Bind any cordova events here. Common events are:
// 'pause', 'resume', etc.
onDeviceReady: function() {
this.receivedEvent('deviceready');
window.open = cordova.InAppBrowser.open;
document.getElementById("connect").addEventListener("click", this.connectBrowser)
},
connectBrowser: function () {
var url = 'http://www.google.com';
var ref = window.open(url, '_blank', 'toolbar=yes, location=no');
},
// Update DOM on a Received Event
receivedEvent: function(id) {
var parentElement = document.getElementById(id);
var listeningElement = parentElement.querySelector('.listening');
var receivedElement = parentElement.querySelector('.received');
listeningElement.setAttribute('style', 'display:none;');
receivedElement.setAttribute('style', 'display:block;');
console.log('Received Event: ' + id);
}
};
app.initialize();
{code}
Reporter: Steven Santa Maria
Assignee: Suraj Pindoria
* after opening the iab inappbrowser, typing into a text bar, then closing the window (click 'done'), button or link elements on the page that the app returns to are not clickable
* the issue occurs after the app is built using latest ios build
* the issue occurs most times not every time
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org