From df16ed8e962f4b207d35c1a2cf7bcb375fc0e5ae Mon Sep 17 00:00:00 2001 From: Carson Gross Date: Mon, 5 Aug 2024 12:29:33 -0600 Subject: [PATCH] manual test for keeping indicators visible --- src/htmx.js | 1 - test/manual/keep-indicators/1.html | 1 + test/manual/keep-indicators/index.html | 29 ++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 test/manual/keep-indicators/1.html create mode 100644 test/manual/keep-indicators/index.html diff --git a/src/htmx.js b/src/htmx.js index 1253f672..dac2c31f 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -4585,7 +4585,6 @@ var htmx = (function() { ajaxHelper('get', redirectPath, redirectSwapSpec).then(function() { pushUrlIntoHistory(redirectPath) }) - responseInfo.keepIndicators = true; return } diff --git a/test/manual/keep-indicators/1.html b/test/manual/keep-indicators/1.html new file mode 100644 index 00000000..c084b12d --- /dev/null +++ b/test/manual/keep-indicators/1.html @@ -0,0 +1 @@ +Some Text... diff --git a/test/manual/keep-indicators/index.html b/test/manual/keep-indicators/index.html new file mode 100644 index 00000000..2788d627 --- /dev/null +++ b/test/manual/keep-indicators/index.html @@ -0,0 +1,29 @@ + + + + + History - Index + + + +

Indicator Visibility Test

+

+ This test marks the response as keepIndicators, so the indicator span should remain visible after the + request finishes. +

+ + + Should Remain Visible... + + +