+
Year must be between {{yearMin}} and {{yearMax}}.
+ class="uk-text-danger uk-margin-small-top uk-margin-remove-bottom uk-width-1-1">
Starting year must be greater than or equal to ending year.
+ class="uk-text-danger uk-margin-small-top uk-margin-remove-bottom uk-width-1-1">
Both starting and ending year are required
diff --git a/utils/rangeFilter/rangeFilter.component.ts b/utils/rangeFilter/rangeFilter.component.ts
index a89d5c55..193d2de4 100644
--- a/utils/rangeFilter/rangeFilter.component.ts
+++ b/utils/rangeFilter/rangeFilter.component.ts
@@ -51,6 +51,9 @@ export class RangeFilterComponent {
if(yearsSelected != null) {
this.filter.selectedFromValue = (this.currentYear - yearsSelected) + "";
this.filter.selectedToValue = this.currentYear + "";
+ } else {
+ this.filter.selectedFromValue = this.rangeForm.get('yearFrom').value;
+ this.filter.selectedToValue = this.rangeForm.get('yearTo').value;
}
this.onFilterChange.emit({
value: this.filter