Answers.Body: <p>Can you try below patch on shoreditch extension to see if it fixes your problem?</p>
  
  <pre><code>diff --git a/js/main-menu.js b/js/main-menu.js
  index c4bd2576..c87ba81d 100644
  --- a/js/main-menu.js
  +++ b/js/main-menu.js
  @@ -63,9 +63,12 @@
      * @return {boolean}
      */
     function isQuickSearchOnGoing () {
  -    var searchValue = $('#sort_name_navigation').val() || '';
  -
  -    return !!searchValue.trim();
  +    if ($('#sort_name_navigation') &amp;&amp; $('#sort_name_navigation').val()) {
  +      return !!$('#sort_name_navigation').val().trim();
  +    }
  +    else {
  +      return false;
  +    }
     }
  
     /**
  </code></pre>
  
  <p>Cheers</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-15T12:41:38.733Z
Answers.Text: Thank you so much for the patch! That did the trick. I was trying my hand at it this morning and hadn't gotten it to work yet.
Answers.UserDisplayName: Tish
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-15T12:59:03.407Z
Answers.Text: Can you please mark this post as answered than?
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-01T03:08:39.757Z
Answers.Text: I have had the same problem appear on upgrade to 5.13.5 (no Action from the Action dropdown). The problem disappears if I disable Shoreditch. However, the patch above seems incompatible with the current/new(?) code in Shoreditch's main-menu.js, which is now simply:   
  
  > /**
  >   * Checks if the quick search field currently has any value
  >   *
  >   * @return {boolean}
  >   */
  >  function isQuickSearchOnGoing () {
  >    return !!$('#sort_name_navigation').val().trim();
  >  }
Answers.UserDisplayName: Bryan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-02T01:25:26.073Z
Answers.Text: Problem vanished with today's update to new versions of Flexmailer & Mosaico.
Answers.UserDisplayName: Bryan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-04T01:54:55.283Z
Answers.Text: I spoke too soon. The problem is still there but only affects the Contacts Action drop down, not other lists.
Answers.UserDisplayName: Bryan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-14T21:47:42.257Z
Answers.LastActivityDate: 2019-05-14T21:47:42.257Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>Upgrading Shoreditch/Bootstrap to Alpha32 seems to solve the problem (thus far).   Curious that Shoreditch was not selected as the theme but seems to have been interfering nonetheless.     Still not sure about that Go button.  Any ideas on where that comes from?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-10T21:18:10.230Z
Answers.LastActivityDate: 2019-06-10T21:18:10.230Z
Answers.UserDisplayName: Dave T
Answers.Body: <p>Having a similar problem.  Playing with different Civi admin themes and shoreditch enabled and disabled.   At one point a "Go" button showed up next to the Actions drop down list. The button triggered the selected action.  But this button does not show up consistently with any other theme and the combination of theme and Civi css on/off options did not display correctly.</p>
  
  <p><a href="https://i.sstatic.net/Oqt9U.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Oqt9U.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-10T19:06:18.457Z
Answers.LastActivityDate: 2019-06-10T20:50:37.953Z
Answers.LastEditDate: 2019-06-10T20:50:37.953Z
Answers.UserDisplayName: Dave T
Body: <p>Can someone offer me some insight as to the possible cause of the Actions drop-down not working?</p>
  
  <p>Here is my setup:</p>
  
  <ul>
  <li>CiviCRM 5.13.3</li>
  <li>Drupal 7.67</li>
  <li>PHP 7.2.16</li>
  <li>Bootstrap subtheme set to use JQuery 3.1</li>
  </ul>
  
  <p>When I execute a search from the advanced search form, I get the following JS error:</p>
  
  <pre><code>TypeError: f is undefined
      mysite.org/misc/jquery.ba-bbq.js:19:115
  Warn: could not find module util
  </code></pre>
  
  <p>When select contacts from search results, I get the following errors:</p>
  
  <pre><code>TypeError: $(...).val(...) is undefined  
      mysite.org/sites/default/files/civicrm/civi_extensions/org.civicrm.shoreditch/js/main-menu.js:66:41
      Ember 2 (errors)
          isQuickSearchOnGoing
          removeCustomClassOnOutsideClick
      jQuery 2 (errors)
          dispatch
          handle
  </code></pre>
  
  <p>When I select an item from the "Actions" dropdown, I get the following errors:</p>
  
  <pre><code>TypeError: $(...).val(...) is undefined
      mysite.org/sites/default/files/civicrm/civi_extensions/org.civicrm.shoreditch/js/main-menu.js:66:41
  Ember 2 (errors)
      isQuickSearchOnGoing
      removeCustomClassOnOutsideClick
  jQuery 8 (errors)
      dispatch
      handle
      trigger
      trigger
      each
      each
      trigger
      b
  &lt;anonymous&gt; Ember
  jQuery 7 (errors)
      dispatch
      handle
      trigger
      trigger
      each
      each
      trigger
  Ember 5 (errors)
      triggerChange
      onSelect
      selectHighlighted
      init
      bind
  jQuery 2 (errors)
      dispatch
      handle
  </code></pre>
  
  <p>I am able to execute actions options from a contact's individual record, but not from any search results. Changing Bootstrap's settings to use a lower version of JQuery has no effect. Disabling the Bootstrap sub theme and base theme has no effect. It happens in Firefox and Chrome.</p>
  
Tags: <drupal><javascript><jquery><actions>
Title: Nothing happens on selection of “Actions” dropdown options
ThreadText: # Nothing happens on selection of “Actions” dropdown options
  
  (Asked by: username_0 on 2019-05-14)
  
  Can someone offer me some insight as to the possible cause of the Actions drop-down not working?
  Here is my setup:
  
  CiviCRM 5.13.3
  Drupal 7.67
  PHP 7.2.16
  Bootstrap subtheme set to use JQuery 3.1
  
  When I execute a search from the advanced search form, I get the following JS error:
  TypeError: f is undefined
      mysite.org/misc/jquery.ba-bbq.js:19:115
  Warn: could not find module util
  
  When select contacts from search results, I get the following errors:
  TypeError: $(...).val(...) is undefined  
      mysite.org/sites/default/files/civicrm/civi_extensions/org.civicrm.shoreditch/js/main-menu.js:66:41
      Ember 2 (errors)
          isQuickSearchOnGoing
          removeCustomClassOnOutsideClick
      jQuery 2 (errors)
          dispatch
          handle
  
  When I select an item from the "Actions" dropdown, I get the following errors:
  TypeError: $(...).val(...) is undefined
      mysite.org/sites/default/files/civicrm/civi_extensions/org.civicrm.shoreditch/js/main-menu.js:66:41
  Ember 2 (errors)
      isQuickSearchOnGoing
      removeCustomClassOnOutsideClick
  jQuery 8 (errors)
      dispatch
      handle
      trigger
      trigger
      each
      each
      trigger
      b
   Ember
  jQuery 7 (errors)
      dispatch
      handle
      trigger
      trigger
      each
      each
      trigger
  Ember 5 (errors)
      triggerChange
      onSelect
      selectHighlighted
      init
      bind
  jQuery 2 (errors)
      dispatch
      handle
  
  I am able to execute actions options from a contact's individual record, but not from any search results. Changing Bootstrap's settings to use a lower version of JQuery has no effect. Disabling the Bootstrap sub theme and base theme has no effect. It happens in Firefox and Chrome.
  
  **Tags:** drupal, javascript, jquery, actions
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2019-05-14. Score: 1 | Accepted answer
  
  Can you try below patch on shoreditch extension to see if it fixes your problem?
  diff --git a/js/main-menu.js b/js/main-menu.js
  index c4bd2576..c87ba81d 100644
  --- a/js/main-menu.js
  +++ b/js/main-menu.js
  @@ -63,9 +63,12 @@
      * @return {boolean}
      */
     function isQuickSearchOnGoing () {
  -    var searchValue = $('#sort_name_navigation').val() || '';
  -
  -    return !!searchValue.trim();
  +    if ($('#sort_name_navigation') && $('#sort_name_navigation').val()) {
  +      return !!$('#sort_name_navigation').val().trim();
  +    }
  +    else {
  +      return false;
  +    }
     }
  
     /**
  
  Cheers
  Pradeep
  
  > **Comments:**
  > **username_0**: Thank you so much for the patch! That did the trick. I was trying my hand at it this morning and hadn't gotten it to work yet.  
  > **username_1**: Can you please mark this post as answered than?  
  > **username_2**: I have had the same problem appear on upgrade to 5.13.5 (no Action from the Action dropdown). The problem disappears if I disable Shoreditch. However, the patch above seems incompatible with the current/new(?) code in Shoreditch's main-menu.js, which is now simply:     > /** >   * Checks if the quick search field currently has any value >   * >   * @return {boolean} >   */ >  function isQuickSearchOnGoing () { >    return !!$('#sort_name_navigation').val().trim(); >  }  
  > **username_2**: Problem vanished with today's update to new versions of Flexmailer & Mosaico.  
  > **username_2**: I spoke too soon. The problem is still there but only affects the Contacts Action drop down, not other lists.  
  
  ---
  
  ### Answer by username_3 on 2019-06-10. Score: 0
  
  Upgrading Shoreditch/Bootstrap to Alpha32 seems to solve the problem (thus far). Curious that Shoreditch was not selected as the theme but seems to have been interfering nonetheless. Still not sure about that Go button. Any ideas on where that comes from?
  
  
  ---
  
  ### Answer by username_3 on 2019-06-10. Score: 0
  
  Having a similar problem. Playing with different Civi admin themes and shoreditch enabled and disabled. At one point a "Go" button showed up next to the Actions drop down list. The button triggered the selected action. But this button does not show up consistently with any other theme and the combination of theme and Civi css on/off options did not display correctly.
  
  [![enter image description here](https://i.sstatic.net/Oqt9U.png)](https://i.sstatic.net/Oqt9U.png)
  
  
  ---
  
  