Reputation: 592
I have an iOS app which has a UIWebView
in which I have a javascript
opening a javascript
confirm dialog. Once this opens the app "freezes". It's not completly frozen, the debugger says everything is fine, rotating the screen will work once, then not anymore. But most importantly I just can't confirm the dialog or do anything else.
I can't really give code for that. It's just a javascript
confirmation box called like this
if(!confirm('String')) return;
Does anyone have an idea where this could come from? I'm open to any suggestions.
Thanks
Upvotes: 0
Views: 1070
Reputation: 565
I had this same issue when I had the alert/confirm dialog inside of an onchange event. The solution was to wrap the code containing the alert/confirm statements inside a setTimeout function.
Upvotes: 1