diff --git a/core/modules/views_ui/js/views-admin.js b/core/modules/views_ui/js/views-admin.js
index 7f217dc..acca305 100644
--- a/core/modules/views_ui/js/views-admin.js
+++ b/core/modules/views_ui/js/views-admin.js
@@ -533,9 +533,7 @@
       // Due to conflicts between Drupal core's AJAX system and the Views AJAX
       // system, the only way to get this to work seems to be to trigger both the
       // mousedown and submit events.
-      this.addGroupButton
-        .trigger('mousedown')
-        .trigger('submit');
+      this.addGroupButton.click();
       event.preventDefault();
     },
 
diff --git a/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php b/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php
index 1b8e18d..b191e30 100644
--- a/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php
+++ b/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php
@@ -208,6 +208,8 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       '#value' => $this->t('Create new filter group'),
       '#id' => 'views-add-group',
       '#group' => 'add',
+      '#submit' => array(array($this, 'addGroupForm')),
+      '#attributes' => array('class' => array('use-ajax-submit')),
     );
 
     return $form;
