samyc1201 opened a new issue #1047:
URL: https://github.com/apache/cordova-ios/issues/1047


   # Bug Report
   app hang while showing alert when select dropdown box is actively showing
   
   ## Problem
   cordova app went hang when calling javascript executing alert() when user 
has clicked the select box and the select box dropdown box is showing on screen
   
   ### What is expected to happen?
   alert box should show on top of the page, the app shouldn't hang
   
   ### What does actually happen?
   ## Information
   Please refer to the code below, there are one select box and one button, 
first, please click the button, the alert box will show after 2 seconds. After 
the button is clicked, do click the "select" box immediately, after that, wait 
for 2 seconds. Dismiss the dropdown box, the app will go hang and nothing is 
responding anymore.
   
   ### Command or Code
   
   Code snippet:
   
   ```
   <!DOCTYPE html>
   
   <html>
       <head>
           <meta charset="utf-8">
           <meta name="format-detection" content="telephone=no">
           <meta name="msapplication-tap-highlight" content="no">
           <meta name="viewport" content="initial-scale=1, width=device-width, 
viewport-fit=cover">
           <meta name="color-scheme" content="light dark">
           <link rel="stylesheet" href="css/index.css">
           <title>Hello World</title>
           <script>
               function test() {
                   setTimeout(function(){ alert("Hello"); }, 2000);
               }
           </script>
       </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>
               </div>
               <select><option>sdfsdf</option>
                   <option>sdfsdf</option>
                   <option>sdfsdf</option>
               </select>
               <button type="button" onclick="test()">Click Me!</button>
           </div>
           <script src="cordova.js"></script>
           <script src="js/index.js"></script>
       </body>
   </html>
   ```
   
   
   ### Environment, Platform, Device
   iOS device (iphone or ipad), tested in iOS 13 and 14
   
   
   ### Version information
   What are relevant versions you are using?
   For example:
   Cordova CLI 10.0.0
   Cordova iOS: 6.1.0
   
   
   ## Checklist
   
   - [x ] I searched for existing GitHub issues
   - [ x] I updated all Cordova tooling to most recent version
   - [x ] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to