Skip to content

Commit

Permalink
Update slider.ts
Browse files Browse the repository at this point in the history
Fixed issue: #2429
  • Loading branch information
mnjongerius authored May 19, 2017
1 parent 8209c9a commit e0613d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/slider/slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ export class Slider implements AfterViewInit,OnDestroy,ControlValueAccessor {
this.mouseupListener = this.renderer.listenGlobal('document', 'mouseup', (event) => {
if(this.dragging) {
this.dragging = false;
this.onSlideEnd.emit({originalEvent: event, value: this.value});
if(this.range) {
this.onSlideEnd.emit({originalEvent: event, values this.values});
} else {
this.onSlideEnd.emit({originalEvent: event, value: this.value});
}
}
});
}
Expand Down Expand Up @@ -281,4 +285,4 @@ export class Slider implements AfterViewInit,OnDestroy,ControlValueAccessor {
exports: [Slider],
declarations: [Slider]
})
export class SliderModule { }
export class SliderModule { }

0 comments on commit e0613d8

Please sign in to comment.