-
-
Notifications
You must be signed in to change notification settings - Fork 194
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 for clicking outside open Select closing modal #2919
Conversation
|
yarn.lock
Outdated
"@radix-ui/react-use-escape-keydown" "1.0.3" | ||
|
||
"@radix-ui/react-dismissable-layer@1.0.5": | ||
"@radix-ui/react-dismissable-layer@1.0.3", "@radix-ui/react-dismissable-layer@1.0.5": |
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.
The fact that there's still 2 subdependencies with different versions name, is troublesome, no? Although it's only resolving to 1.0.5 😄 Anyways, I tried with only:
"resolutions": {
"react": "^18",
"@radix-ui/react-dismissable-layer": "1.0.5"
},
and it also did the trick.
Tested on the composition token creation modal, and it works well 👌
I'm wary of other multiple versions that have appeared in the Do you think this is due to the pinned dependency of "@radix-ui/react-dismissable-layer": "1.0.5"? If so, this should be carefully tested beforehand. Next option on the table is to upgrade all linked up What does the team think? CC @macintoshhelper @six7 @robinhoodie0823 For reference, my previously closed PR was another 'fix' option which involved manipulating the DOM, the caveat was that the Depends on the annoyance of the users as per the initial report (linked here and @SamIam4Hyma 🙏) |
@macintoshhelper can you do a check of various modals / dropdowns in the plugin to ensure that we didnt regress? if so i'd say that'd be enough of a check given we'd want to upgrade radix packages soon. otherwise 👍 from my side |
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.
Tested on the 3 components that have <Select>
s inside <Modal>
s, and they look good!
Why does this PR exist?
Closes #2885
What does this pull request do?
Testing this change
Modify
, create a new entry, click theSelect
box and try clicking anywhere outside itComposition
Additional Notes (if any)
For testing locally, it is necessary to clear
node_modules
and do a cleanyarn
install.In the repository root directory:
Kapture.2024-06-25.at.13.17.38.mp4