-
-
Notifications
You must be signed in to change notification settings - Fork 313
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: fix picker in shadowdom #213
fix: fix picker in shadowdom #213
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/picker/eycw5qt8l |
Codecov Report
@@ Coverage Diff @@
## master #213 +/- ##
==========================================
- Coverage 99.61% 99.57% -0.05%
==========================================
Files 45 45
Lines 2094 2101 +7
Branches 616 617 +1
==========================================
+ Hits 2086 2092 +6
- Misses 6 7 +1
Partials 2 2
Continue to review full report at Codecov.
|
preventBlurRef.current = true; | ||
|
||
// Always set back in case `onBlur` prevented by user | ||
requestAnimationFrame(() => { | ||
preventBlurRef.current = false; | ||
}); | ||
} else if (!focused) { | ||
} else if (!focused || clickedOutside) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个没有意义吧,else if 时 clickedOutside
一定是 true 的。
fix event.target if event triggered in shadow dom