title: dialog-ready event does not fire when dialog opens in AEM 6.1?
body: <p>My most basic problem is to load a select field in touch UI dialog with dynamic options.
  These options are coming from a external URL via webservices so please don't mention datasources here.</p>
  <p>In classic UI is easy with optionsProvider.</p>
  <p>In touch UI I am trying to write a script that fetches the data from the external webservice via AJAX <strong>ON DIALOG load</strong> and set these options in the select field.</p>
  <p>My dialog.ready event is just not getting called.</p>
  <p>There is another annoying issue I see with touch UI is that I can't see the edit option when I hover over a component. It shows just &quot;delete&quot; and &quot;group&quot; option. And this happens for some components only. I have to double tap to to open the dialog.
  Please see image
  <a href="https://i.stack.imgur.com/odBuH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/odBuH.png" alt="enter image description here" /></a></p>
  <p>Also see my code below to for dialog ready.</p>
  <pre class="lang-js prettyprint-override"><code>(function ($, $document, $window) {
  &quot;use strict&quot;;
  console.log('Namaste'); // works
  
  $document.on(&quot;dialog-ready&quot;, function() {
  
      console.log('Hello'); // Does not work/fire when dialog opens
  
       $window.adaptTo(&quot;foundation-ui&quot;).alert(&quot;Open&quot;, &quot;Dialog now open, event [dialog-ready]&quot;);
      if(comm) {
            var serviceUrl = xyz.config.baseUrl + '/public/movies';
            $.ajax({
                  url: serviceUrl,
                  cache:false,
                  success: function(result){
                      console.log('Result'+JSON.stringify(result));
              }
            });
      }
      
  });
  
  $document.on(&quot;dialog-closed&quot;, function() {
      $(window).adaptTo(&quot;foundation-ui&quot;).alert(&quot;Close&quot;, &quot;Dialog closed, event [dialog-closed]&quot;);
  });
  
  })($, $(document), $(window));
  </code></pre>