diff --git a/src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.html b/src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.html
index 672bd0be4e2..6f1f95738ce 100644
--- a/src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.html
+++ b/src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.html
@@ -8,7 +8,7 @@
{{'search.filters.filter.' + filterConfig.name + '.min.label' | translate}}
@@ -20,7 +20,7 @@
{{'search.filters.filter.' + filterConfig.name + '.max.label' | translate}}
@@ -33,7 +33,8 @@
@@ -43,5 +44,8 @@
+
diff --git a/src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.ts b/src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.ts
index 1ddac22dd3b..ac524739d49 100644
--- a/src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.ts
+++ b/src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.ts
@@ -91,6 +91,11 @@ export class SearchRangeFilterComponent extends SearchFacetFilterComponent imple
*/
range: [number | undefined, number | undefined];
+ /**
+ * The range currently selected by the slider
+ */
+ sliderRange: [number | undefined, number | undefined];
+
/**
* Whether the sider is being controlled by the keyboard.
* Supresses any changes until the key is released.
@@ -145,6 +150,15 @@ export class SearchRangeFilterComponent extends SearchFacetFilterComponent imple
};
}
+ /**
+ * Updates the sliderRange property with the current slider range.
+ * This method is called whenever the slider value changes, but it does not immediately apply the changes.
+ * @param range - The current range selected by the slider
+ */
+ onSliderChange(range: [number | undefined, number | undefined]): void {
+ this.sliderRange = range;
+ }
+
/**
* Submits new custom range values to the range filter from the widget
*/
@@ -182,5 +196,4 @@ export class SearchRangeFilterComponent extends SearchFacetFilterComponent imple
shouldShowSlider(): boolean {
return isPlatformBrowser(this.platformId);
}
-
}