-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix: Smaller screens - Double click to close phone popup reopens the popup #17498
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
Conversation
|
@Julesssss @aimane-chnaif One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
| </View> | ||
| <Popover | ||
| onClose={this.toggleVideoChatMenu} | ||
| onClose={this.hideVideoChatMenu} |
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.
Let's update toggleVideoChatMenu function to accept isVideoChatMenuActive param rather than introducing new hideVideoChatMenu function.
We accepted your solution only because you're the first.
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.
as toggle stands for toggling the value, isn't the separate function hideVideoChatMenu makes more sense?
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.
I exactly like tienifr's proposal. Let's deprecate "toggle"
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.
In that case, changing method name from toggleVideoChatMenu to updateVideoChatMenu makes more sense or do you prefer to let the name same as per the consistency?
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.
setMenuVisibility is fine
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.
Ok, done.
| this.dimensionsEventListener = null; | ||
|
|
||
| this.toggleVideoChatMenu = this.toggleVideoChatMenu.bind(this); | ||
| this.setMenuVisibility = this.setMenuVisibility.bind(this); |
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.
no longer needed
| this.setMenuVisibility = this.setMenuVisibility.bind(this); |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
aimane-chnaif
left a comment
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.
LGTM 🎉
@Julesssss all yours!
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.1-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.1-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.1-3 🚀
|
Details
Hide the menu popover instead of toggling as it was causing the reopens popup due to the animation time to hide the popover.
Fixed Issues
$ #16582
PROPOSAL: #16582 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Screen.Recording.2023-04-17.at.6.19.29.PM.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
Screen.Recording.2023-04-17.at.6.39.36.PM.mov
iOS
Simulator.Screen.Recording.-.iPhone.14.-.2023-04-17.at.18.36.08.mp4
Android