-
Notifications
You must be signed in to change notification settings - Fork 202
chore: Follow up for the modal root fixes #4016
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
8db9171 to
57398e0
Compare
| of the most recent getModalRoot call as an argument.", | ||
| "inlineType": { | ||
| "name": "(container: HTMLElement) => void", | ||
| "name": "(container: HTMLElement | null) => void", |
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.
is this not a breaking change?
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.
It is. I already confirmed it is safe with a dry-run to live linked in the original component-toolkit CR: 7586509761
| element.setAttribute('id', 'async-modal-root'); | ||
| document.body.appendChild(element); | ||
| if (!abortSignal.aborted) { | ||
| document.body.appendChild(element); |
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.
Can we instead avoid calling this function when it is aborted?
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.
How do you imagine that? This function is async it is called on the start, and there is no way to abort it after it has been already called
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.
got it now, thanks
| element.setAttribute('id', 'async-modal-root'); | ||
| document.body.appendChild(element); | ||
| if (!abortSignal.aborted) { | ||
| document.body.appendChild(element); |
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.
got it now, thanks
57398e0 to
4c60f2a
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4016 +/- ##
=======================================
Coverage 97.25% 97.25%
=======================================
Files 859 859
Lines 25396 25396
Branches 9048 9049 +1
=======================================
Hits 24699 24699
+ Misses 691 650 -41
- Partials 6 47 +41 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Follow up to be merged after another change is released: cloudscape-design/component-toolkit#172
Related links, issue #, if available: n/a
How has this been tested?
The PR build will pass after the toolkit change is released to NPM. I will restart the build, but the code itself is ready for the review
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md.CONTRIBUTING.md.Security
checkSafeUrlfunction.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.