Skip to content

Commit

Permalink
fix(Slider): Fixed Tooltip is covered by the button.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 23, 2017
1 parent ece24b4 commit 0480b4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/slider/Button.js
Expand Up @@ -50,6 +50,7 @@ export default class Button extends Component {
) {
this.parent().isDragging(true);
this.currentPoint = startPoint;
this.button.style.zIndex = 99999;
onChange(startPoint);
}
}
Expand All @@ -62,6 +63,7 @@ export default class Button extends Component {
onChange(startPoint);
}
this.startPoint = startPoint;
this.button.style.zIndex = 1001;
// 拖拽和点击,导致设置值不准确
this.timeout = setTimeout(() => {
this.parent().isDragging(false);
Expand Down

0 comments on commit 0480b4d

Please sign in to comment.