-
Notifications
You must be signed in to change notification settings - Fork 13.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
fix: Filter and Metric popovers not closing after clicking Save #11607
Conversation
@rusackas Can you take a look? |
Codecov Report
@@ Coverage Diff @@
## master #11607 +/- ##
==========================================
- Coverage 66.56% 61.72% -4.85%
==========================================
Files 876 878 +2
Lines 42172 42264 +92
Branches 3949 3948 -1
==========================================
- Hits 28073 26086 -1987
- Misses 13996 15996 +2000
- Partials 103 182 +79
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
37c0832
to
615405c
Compare
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! I appreciate the tests!
Thanks for the fix and adding test cases! |
…he#11607) * Fix filter popover not closing * Fix metric popover not closing * Add e2e tests
SUMMARY
Fixes #11598 and #11608. The issue was that when you opened a popover, didn't make any changes and then clicked save, 'isNew' prop wasn't set to false before sending it to
onChange
function. Then the component rerendered andisNew
was still set to true and popover reopened.CC: @junlincc
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION