From b36a4fc5ca064594df1467e7a5897c3c252b6099 Mon Sep 17 00:00:00 2001
From: nod_ <nod_@598310.no-reply.drupal.org>
Date: Tue, 7 Jan 2025 10:25:53 +0100
Subject: [PATCH] Issue #3496607 by alexpott: Make return value of stopEvent
 consistent and the code less tempting to change

---
 core/misc/ajax.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/misc/ajax.js b/core/misc/ajax.js
index d6b62eb4f232..b00e162e95e9 100644
--- a/core/misc/ajax.js
+++ b/core/misc/ajax.js
@@ -1896,7 +1896,7 @@
       xhr.getResponseHeader('X-Drupal-Ajax-Token') === '1' &&
       // The isInProgress() function might not be defined if the Ajax request
       // was initiated without Drupal.ajax() or new Drupal.Ajax().
-      settings.isInProgress &&
+      typeof settings.isInProgress === 'function' &&
       // Until this is false, the Ajax request isn't completely done (the
       // response's commands might still be running).
       settings.isInProgress()
-- 
GitLab