From 5c250080e259096bf0362752193f30184bbdfc99 Mon Sep 17 00:00:00 2001 From: michaellenahan Date: Sat, 8 Jan 2022 00:43:08 +0100 Subject: [PATCH] Test for jQuery.hasOwnProperty('active') --- src/Drupal/DrupalExtension/Context/MinkContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Drupal/DrupalExtension/Context/MinkContext.php b/src/Drupal/DrupalExtension/Context/MinkContext.php index e2ac026f..12d3b530 100644 --- a/src/Drupal/DrupalExtension/Context/MinkContext.php +++ b/src/Drupal/DrupalExtension/Context/MinkContext.php @@ -147,7 +147,7 @@ function isAjaxing(instance) { return ( // Assert no AJAX request is running (via jQuery or Drupal) and no // animation is running. - (typeof jQuery === 'undefined' || (jQuery.active === 0 && jQuery(':animated').length === 0)) && + (typeof jQuery === 'undefined' || jQuery.hasOwnProperty('active') === false || (jQuery.active === 0 && jQuery(':animated').length === 0)) && d7_not_ajaxing && d8_not_ajaxing ); }());