Skip to content

Commit

Permalink
fix: fix slider tooltip blink when drag out of handle (#1935)
Browse files Browse the repository at this point in the history
* fix: fix slider tooltip blink when drag out of handle

* chore: optimize code
  • Loading branch information
DaiQiangReal authored Dec 11, 2023
1 parent 1ef1e0e commit c1993b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/semi-foundation/slider/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ export default class SliderFoundation extends BaseFoundation<SliderAdapter> {
onHandleLeave = () => {
// this._adapter.setEventDefault(e);
const disabled = this._adapter.getState('disabled');
if (!disabled) {
if (!disabled && this.getStates()['focusPos'] === "") {
this._adapter.onHandleLeave();
}
};
Expand Down

0 comments on commit c1993b6

Please sign in to comment.