/* FIX THE IOS DROPDOWN BUG BY FINDING THE FOLLOWING FUNCTION AND ADDING THE BOTTOM LINE
more info : https://github.com/twitter/bootstrap/issues/4550#issuecomment-8684262

/* APPLY TO STANDARD DROPDOWN ELEMENTS
   * =================================== */

  $(function () {
    $('html')
      .on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus)
    $('body')
      .on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
      .on('click.dropdown.data-api touchstart.dropdown.data-api'  , toggle, Dropdown.prototype.toggle)
      .on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)

/* ###### ###### the following line fixes the dropdown menu bug on iOs devices ###### ###### */
	  .on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); })
  })