Skip to content

Commit

Permalink
fix: Slider error when clicking mark #407
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jan 17, 2019
1 parent 99bf304 commit 73f9b23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions components/tabs/tabs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ export default {
tabBarExtraContent,
renderTabBar: renderTabBarSlot,
},
on: {
...this.$listeners,
},
on: this.$listeners,
};
const contentCls = {
[`${prefixCls}-${tabPosition}-content`]: true,
Expand Down
4 changes: 2 additions & 2 deletions components/vc-slider/src/common/createSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default function createSlider(Component) {
},
onClickMarkLabel(e, value) {
e.stopPropagation();
this.onChange({ value });
this.onChange({ sValue: value });
this.onEnd();
},
getSliderStart() {
Expand Down Expand Up @@ -294,7 +294,7 @@ export default function createSlider(Component) {
min,
className: `${prefixCls}-mark`,
},
listeners: {
on: {
clickLabel: disabled ? noop : this.onClickMarkLabel,
},
};
Expand Down

0 comments on commit 73f9b23

Please sign in to comment.