-
Notifications
You must be signed in to change notification settings - Fork 838
Forms: Fixes the double close #45557
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
Updates the SingleResponseView component to only pass sidePanelItem when there is a selection, preventing unintended behavior when selection is empty.
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |
edanzer
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.
This is a simple change and everything works as expected. I tested on a phone, on my laptop in responsive mode, and on my laptop in desktop mode and then shrink the window to responsive mode (where we had an original issue). In all cases, the single response modal closes on first click.
The only thing to note is that this all seems to be working on trunk for me too, so I may be missing something needed to duplicate the issue. Even so, given the safe change and good testing, approved.
This PR fixes the need to click the X button twice to close the sidebar.
This regression was introduces when #45543 and #45541 landed in trunk.
Proposed changes:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
No
Testing instructions: