diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js
index 4372bbe6b3ca15c7d3ed2574de6bf955710ef964..0cc59731cef3b3104b33d8893699ad0d25f2606d 100644
--- a/dist/js/bootstrap.js
+++ b/dist/js/bootstrap.js
@@ -728,13 +728,13 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
 
       if (e.isDefaultPrevented()) return
 
-      $this
-        .trigger('focus')
-        .attr('aria-expanded', 'true')
-
       $parent
         .toggleClass('open')
         .trigger('shown.bs.dropdown', relatedTarget)
+
+      $this
+        .trigger('focus')
+        .attr('aria-expanded', 'true')
     }
 
     return false