Skip to content

Commit

Permalink
fix(comp:slider): slider thumb tooltip shouldn't blink (#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Nov 8, 2022
1 parent 65c703c commit fe6a533
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/components/slider/src/Thumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export default defineComponent({
visible={mergedTooltipVisible.value}
placement={tooltipPlacement.value}
trigger="manual"
onMouseenter={handleMouseEnter}
onMouseleave={handleMouseLeave}
v-slots={{
title: () =>
isFunction(tooltipFormatter.value) ? tooltipFormatter.value(props.value!) : <span>{props.value}</span>,
Expand Down

0 comments on commit fe6a533

Please sign in to comment.