-
-
Notifications
You must be signed in to change notification settings - Fork 228
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: close dialogs when clicking outside #999
fix: close dialogs when clicking outside #999
Conversation
β Deploy Preview for oss-insights ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
β Deploy Preview for design-insights ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@takanome-dev this works if I click a link on the page to open the modal, but now it doesn't open the modal when navigating directly. Screen.Recording.2023-03-14.at.9.06.08.AM.mov |
This comment was marked as resolved.
This comment was marked as resolved.
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.
You need to update your branch with beta to trigger the latest release code and return or await the router redirects you implemented in the feed in order to be able to debug them correctly.
It's likely this is 95% ready, just need to get rid of that error π
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.
PR Compliance Checks Passed!
@takanome-dev still seeing the same issue with the modal closing on page load |
Yeah, honestly I don't know how to fix it yet, the component re-renders multiple times thatβs why it closes. I will investigate more on it, any help is appreciated. |
Sure thing. I'll take a look soon |
@brandonroberts it should be good now |
The new fix introduces another bug Screen.Recording.2023-03-22.at.07.13.28.movviewing a single highlight is now blocked when a filter is selected selected. |
Works as expected now π |
Not yet π
When removing the filter, it still stays in the URL I think |
|
||
<div> | ||
<a href={prLink} className="underline text-sauced-orange cursor-pointer"> |
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.
@bdougie, should this be changed to a regular p
element or given the target="_blank"
attribute to open the link in a new tab?
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.
Adding target=_blank
would be good
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.
Works as expected
@takanome-dev after you resolve the merge conflicts, then we're ready to merge |
## [1.37.0-beta.3](v1.37.0-beta.2...v1.37.0-beta.3) (2023-03-22) ### π Bug Fixes * close highlight dialog when clicking outside its container ([#999](#999)) ([1bc90bb](1bc90bb))
π This PR is included in version 1.37.0-beta.3 π The release is available on GitHub release Your semantic-release bot π¦π |
## [1.37.0](v1.36.0...v1.37.0) (2023-03-24) ### π§βπ» Code Refactoring * Deleted unused hooks, removed unused exports and imports ([#1028](#1028)) ([7b2bda2](7b2bda2)) ### π Features * add teams UI for the design system ([#994](#994)) ([499d08e](499d08e)) * added active styles to navbar links ([#1016](#1016)) ([c25c0a3](c25c0a3)), closes [#697](#697) * create collaboration Ui components ([#1006](#1006)) ([19ff5a7](19ff5a7)) * replace react toast to radix ([#933](#933)) ([3e000be](3e000be)) * update top nav menu to be more responsive on mobile ([#1029](#1029)) ([90c1e4a](90c1e4a)), closes [#866](#866) ### π Bug Fixes * updated footer file to update the year dynamically ([#1040](#1040)) ([c766d95](c766d95)) * add a check for proper URL in avatarURL prop ([#1009](#1009)) ([a425279](a425279)) * center text inside upgrade access button ([#1027](#1027)) ([cf3f6cb](cf3f6cb)), closes [#1024](#1024) * close highlight dialog when clicking outside its container ([#999](#999)) ([1bc90bb](1bc90bb)) * make delete standout ([#1026](#1026)) ([9c68287](9c68287)) * make insights hub layout inconsistent on larger screens ([#1046](#1046)) ([daaf6d1](daaf6d1)) * refresh highlights list on update and delete ([#1034](#1034)) ([bf2d951](bf2d951)) * remove dialog layout overlap on single highlight view ([#1047](#1047)) ([ea836e8](ea836e8)) * update avatar style to remain aligned with the input field ([#1037](#1037)) ([2374f20](2374f20))
## [1.37.0-beta.3](open-sauced/app@v1.37.0-beta.2...v1.37.0-beta.3) (2023-03-22) ### π Bug Fixes * close highlight dialog when clicking outside its container ([#999](open-sauced/app#999)) ([1bc90bb](open-sauced/app@1bc90bb))
## [1.37.0](open-sauced/app@v1.36.0...v1.37.0) (2023-03-24) ### π§βπ» Code Refactoring * Deleted unused hooks, removed unused exports and imports ([#1028](open-sauced/app#1028)) ([7b2bda2](open-sauced/app@7b2bda2)) ### π Features * add teams UI for the design system ([#994](open-sauced/app#994)) ([499d08e](open-sauced/app@499d08e)) * added active styles to navbar links ([#1016](open-sauced/app#1016)) ([c25c0a3](open-sauced/app@c25c0a3)), closes [#697](open-sauced/app#697) * create collaboration Ui components ([#1006](open-sauced/app#1006)) ([19ff5a7](open-sauced/app@19ff5a7)) * replace react toast to radix ([#933](open-sauced/app#933)) ([3e000be](open-sauced/app@3e000be)) * update top nav menu to be more responsive on mobile ([#1029](open-sauced/app#1029)) ([90c1e4a](open-sauced/app@90c1e4a)), closes [#866](open-sauced/app#866) ### π Bug Fixes * updated footer file to update the year dynamically ([#1040](open-sauced/app#1040)) ([c766d95](open-sauced/app@c766d95)) * add a check for proper URL in avatarURL prop ([#1009](open-sauced/app#1009)) ([a425279](open-sauced/app@a425279)) * center text inside upgrade access button ([#1027](open-sauced/app#1027)) ([cf3f6cb](open-sauced/app@cf3f6cb)), closes [#1024](open-sauced/app#1024) * close highlight dialog when clicking outside its container ([#999](open-sauced/app#999)) ([1bc90bb](open-sauced/app@1bc90bb)) * make delete standout ([#1026](open-sauced/app#1026)) ([9c68287](open-sauced/app@9c68287)) * make insights hub layout inconsistent on larger screens ([#1046](open-sauced/app#1046)) ([daaf6d1](open-sauced/app@daaf6d1)) * refresh highlights list on update and delete ([#1034](open-sauced/app#1034)) ([bf2d951](open-sauced/app@bf2d951)) * remove dialog layout overlap on single highlight view ([#1047](open-sauced/app#1047)) ([ea836e8](open-sauced/app@ea836e8)) * update avatar style to remain aligned with the input field ([#1037](open-sauced/app#1037)) ([2374f20](open-sauced/app@2374f20))
What type of PR is this? (check all applicable)
Description
This pr fixes the issues with dialogs that won't close after clicking outside of the component.
open
andonPageChange
Related Tickets & Documents
Fixes #985
Mobile & Desktop Screenshots/Recordings
https://www.loom.com/share/32833c5e8fd44d73b90cf9c607461304
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?