-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[WEB-2830]fix: create view modal - layout drop down close #6267
Conversation
WalkthroughThe pull request introduces a modification to the Changes
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)packages/ui/src/dropdown/single-select.tsx (1)
The introduction of the third argument (true) to the useOutsideClickDetector might alter how the click events are captured and handled. Verify that the popover now closes only when intended––e.g., not when interacting with permissible elements within the dropdown. ✅ Verification successfulLet me investigate the Let me check the implementation of the The third parameter is safe and follows standard event handling practices The
🏁 Scripts executedThe following scripts were executed for the analysis: Error: No shell scripts found Script: #!/bin/bash
# Find the implementation of useOutsideClickDetector
ast-grep --pattern 'function useOutsideClickDetector($_) {
$$$
}'
# Also search for any other usages of this hook
rg "useOutsideClickDetector" -A 2
Length of output: 20571 Script: #!/bin/bash
# Find the implementation details of useOutsideClickDetector
cat packages/hooks/src/use-outside-click-detector.tsx
Length of output: 1008 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
This update modifies the dropdown component to ensure it closes when a click is detected on the popover element.
Type of Change
References
WEB-2830
Summary by CodeRabbit