diff --git a/src/app/components/slider/slider.ts b/src/app/components/slider/slider.ts index e4ee7437144..55e019eaa30 100644 --- a/src/app/components/slider/slider.ts +++ b/src/app/components/slider/slider.ts @@ -19,11 +19,11 @@ export const SLIDER_VALUE_ACCESSOR: any = { - - - `, @@ -137,6 +137,19 @@ export class Slider implements OnDestroy,ControlValueAccessor { event.preventDefault(); } + + onTouchEnd(event, index?:number) { + this.dragging = false; + + if (this.range) { + this.onSlideEnd.emit({originalEvent: event, values: this.values}); + } + else { + this.onSlideEnd.emit({originalEvent: event, value: this.value}); + } + + event.preventDefault(); + } onBarClick(event) { if(this.disabled) {