Skip to content

Commit

Permalink
fix(Slider): change end event not emit
Browse files Browse the repository at this point in the history
  • Loading branch information
myronliu347 committed Sep 14, 2024
1 parent 08828c5 commit 920e623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slider/slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export default mixins(classPrefixMixins).extend({
},
emitChangeEnd() {
const changeEndValue = this.range ? [this.firstValue, this.secondValue] : this.firstValue;
emitEvent<Parameters<TdSliderProps['onChangeEnd']>>(this, 'changeEnd', changeEndValue);
emitEvent<Parameters<TdSliderProps['onChangeEnd']>>(this, 'change-end', changeEndValue);
},
getStopStyle(position: number) {
return this.vertical ? { top: `calc(${100 - position}% - 1px)` } : { left: `${position}%` };
Expand Down

0 comments on commit 920e623

Please sign in to comment.