-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
chore(hoverPlaceholder): optmize logic when value is not empty #109
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/picker/eg679ptnj |
Codecov Report
@@ Coverage Diff @@
## master #109 +/- ##
=======================================
Coverage 99.58% 99.58%
=======================================
Files 44 44
Lines 1920 1924 +4
Branches 575 584 +9
=======================================
+ Hits 1912 1916 +4
Misses 6 6
Partials 2 2
Continue to review full report at Codecov.
|
重构了一下,其实已经和 placeholder 没有关系了,hover 时的样式那的类名还是叫 placeholder。 |
|
需要给事件加个防抖 |
#25050
@afc163 看看是不是这种效果?
@zombieJ 优化了有值是的情况,悬停时输入框的值变为对应日期,样式变为 placeholder的样式,离开后恢复原值。