-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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(feedback): Call dialog.close() in dialog close callbacks in _loadAndRenderDialog #13203
Merged
spalmurray-codecov
merged 3 commits into
develop
from
spalmurray/fix-manual-feedback-modal-close
Aug 2, 2024
Merged
fix(feedback): Call dialog.close() in dialog close callbacks in _loadAndRenderDialog #13203
spalmurray-codecov
merged 3 commits into
develop
from
spalmurray/fix-manual-feedback-modal-close
Aug 2, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size-limit report 📦
|
ryan953
reviewed
Aug 2, 2024
Ty for fixing this!! |
d866011
to
841d57c
Compare
ryan953
approved these changes
Aug 2, 2024
This was referenced Aug 27, 2024
This was referenced Aug 28, 2024
This was referenced Aug 30, 2024
This was referenced Aug 30, 2024
This was referenced Sep 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updates
_loadAndRenderDialog
to calldialog.close()
in theonFormClose
andonFormSubmitted
callbacks.Motivation: over at Codecov, we're modifying our user feedback setup so that we have two different feedback integrations, one using the default widget with
createWidget
, and one that is triggered by a button in our help dropdown withcreateForm
. After adding these we noticed what seems to be a bug where thecreateForm
form does not clear theoverflow: hidden
style on the body when the modal is closed, while thecreateWidget
form does clear this style. We currently have added a callback on our end that manually resets the overflow style, but I'm currently revisiting this code again and I thought why not see if we can fix it upstream here 🙂Here's a gif of the issue:
Digging into the code here, it seems that the
createForm
form is not getting a call todialog.close()
when the form is closed, unlike_attachTo
does (link). To fix, I've pulled thedialog.close()
call out into_loadAndRenderDialog
.