Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(comp:slider): slider thumb tooltip shouldn't blink #1256

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

sallerli1
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added/updated or not needed
  • Docs and demo have been added/updated or not needed

What is the current behavior?

鼠标移动到 slider thumb上触发mouseleave, tooltip关闭,接着触发mouseenter, tooltip开启,导致tooltip闪烁

What is the new behavior?

将mouseenter、mouseleave事件同时绑定到thumb以及tooltip上,防止闪烁

Other information

@idux-bot
Copy link

idux-bot bot commented Nov 7, 2022

This preview will be available after the AzureCI is passed.

@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Merging #1256 (e611b03) into main (f3aa234) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1256   +/-   ##
=======================================
  Coverage   93.05%   93.05%           
=======================================
  Files         320      320           
  Lines       29448    29450    +2     
  Branches     3339     3339           
=======================================
+ Hits        27403    27405    +2     
  Misses       2045     2045           
Impacted Files Coverage Δ
packages/components/slider/src/Thumb.tsx 84.15% <100.00%> (+0.32%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@danranVm
Copy link
Member

danranVm commented Nov 7, 2022

加个 delay 不就好吗?

@sallerli1
Copy link
Contributor Author

加delay不行,加delay就是闪得慢了点

@danranVm danranVm merged commit fe6a533 into IDuxFE:main Nov 8, 2022
@sallerli1 sallerli1 deleted the fix-slider-tooltip-blink branch February 20, 2023 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants