Add event target checker for EuiOverlayMask's onClick prop#3462
Add event target checker for EuiOverlayMask's onClick prop#3462cchaos merged 10 commits intoelastic:masterfrom
Conversation
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
|
J, test this |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3462/ |
cchaos
left a comment
There was a problem hiding this comment.
Thanks @TAYTS ! This works really well in the overlay mask docs section where the text is now selectable but can still click the mask part to close.
I just don't think we should add it to all the modal examples (reasons below).
42b5ada to
1562383
Compare
|
retest |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3462/ |
Changed the buttons to be a simple "Close" button so that it becomes a more simple modal example that is ok to work with the onClose of the overflow mask
|
retest |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3462/ |
|
retest |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3462/ |
|
retest |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3462/ |
|
CI is failing with |
|
Thanks on me, thanks @chandlerprall |
|
retest |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3462/ |

Summary
Added event target checker for EuiOverlayMask's onClick prop to prevent the onClick function from firing due to the wrapping child elements's onClick event propagation.
Issue: #3429
Checklist
- [ ] Added or updated jest tests- [ ] Checked for breaking changes and labeled appropriately- [ ] Checked for accessibility including keyboard-only and screenreader modes