Repository navigation
[EuiOverlayMask] Prevent duplicate render and allow use in strict mode - #3555
Conversation
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3555/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3555/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3555/ |
chandlerprall
left a comment
There was a problem hiding this comment.
One last thing, otherwise looks great!
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3555/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3555/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3555/ |
Summary
Fixes #3437 by converting EuiOverlayMask to be a functional component and using lifecycle events (via
useEffect) to create and modify DOM elements for React portal use.Refactor and exposure of props interface, also.
Checklist
- [ ] Check against all themes for compatibility in both light and dark modes- [ ] Checked in mobile- [ ] Checked in IE11 and Firefox- [ ] Added documentation examples- [ ] Added or updated jest tests- [ ] Checked for accessibility including keyboard-only and screenreader modes