Skip to content

Commit 73f9b23

Browse files
committed
fix: Slider error when clicking mark #407
1 parent 99bf304 commit 73f9b23

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

components/tabs/tabs.jsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ export default {
140140
tabBarExtraContent,
141141
renderTabBar: renderTabBarSlot,
142142
},
143-
on: {
144-
...this.$listeners,
145-
},
143+
on: this.$listeners,
146144
};
147145
const contentCls = {
148146
[`${prefixCls}-${tabPosition}-content`]: true,

components/vc-slider/src/common/createSlider.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export default function createSlider(Component) {
190190
},
191191
onClickMarkLabel(e, value) {
192192
e.stopPropagation();
193-
this.onChange({ value });
193+
this.onChange({ sValue: value });
194194
this.onEnd();
195195
},
196196
getSliderStart() {
@@ -294,7 +294,7 @@ export default function createSlider(Component) {
294294
min,
295295
className: `${prefixCls}-mark`,
296296
},
297-
listeners: {
297+
on: {
298298
clickLabel: disabled ? noop : this.onClickMarkLabel,
299299
},
300300
};

0 commit comments

Comments
 (0)