Skip to content

Commit 56ba23f

Browse files
[CST-15589] Updated slider implementation in template
1 parent 6c2d541 commit 56ba23f

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{'search.filters.filter.' + filterConfig.name + '.min.label' | translate}}
99
</span>
1010
<input type="text" [(ngModel)]="range[0]" [name]="filterConfig.paramName + '.min'"
11-
class="form-control" (blur)="onSubmit()"
11+
class="form-control"
1212
[attr.aria-label]="minLabel"
1313
[placeholder]="minLabel"
1414
/>
@@ -20,7 +20,7 @@
2020
{{'search.filters.filter.' + filterConfig.name + '.max.label' | translate}}
2121
</span>
2222
<input type="text" [(ngModel)]="range[1]" [name]="filterConfig.paramName + '.max'"
23-
class="form-control" (blur)="onSubmit()"
23+
class="form-control"
2424
[attr.aria-label]="maxLabel"
2525
[placeholder]="maxLabel"
2626
/>
@@ -33,7 +33,8 @@
3333

3434
<ng-container *ngIf="shouldShowSlider()">
3535
<nouislider [connect]="true" [config]="config" [min]="min" [max]="max" [step]="1"
36-
[dsDebounce]="250" (onDebounce)="onSubmit()"
36+
[dsDebounce]="250"
37+
(change)="onSliderChange($event)"
3738
(keydown)="startKeyboardControl()" (keyup)="stopKeyboardControl()"
3839
[(ngModel)]="range" ngDefaultControl>
3940
</nouislider>
@@ -43,5 +44,8 @@
4344
<ds-search-facet-range-option *ngFor="let value of page.page; trackBy: trackUpdate" [filterConfig]="filterConfig" [filterValue]="value" [inPlaceSearch]="inPlaceSearch"></ds-search-facet-range-option>
4445
</div>
4546
</ng-container>
47+
<button (click)="onSubmit()" class="btn btn-primary">
48+
{{'search.filters.search.submit' | translate}}
49+
</button>
4650
</div>
4751
</div>

0 commit comments

Comments
 (0)