vendor/assets/javascripts/dropdown.js in flashgrid-1.1.2 vs vendor/assets/javascripts/dropdown.js in flashgrid-1.2.0

- old
+ new

@@ -29,15 +29,15 @@ var relatedTarget = { relatedTarget: this } $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget)) if (e.isDefaultPrevented()) return + $this.trigger('focus') + $parent .toggleClass('open') .trigger('shown.bs.dropdown', relatedTarget) - - $this.trigger('focus') } return false } @@ -72,9 +72,10 @@ $items.eq(index).trigger('focus') } function clearMenus(e) { + if (e && e.which === 3) return $(backdrop).remove() $(toggle).each(function () { var $parent = getParent($(this)) var relatedTarget = { relatedTarget: this } if (!$parent.hasClass('open')) return \ No newline at end of file