ContextualMenu
: outside click should be ignored if there is a modal open
#1049
Labels
Bug 🐛
Something isn't working
P3 Triaged
Issue has been reviewed as part of legacy backlog grooming (project P3).
Triaged: v4
Triaged, to be implemented as part of Vanilla v4
When the
closeOnOutsideClick
prop of theContextualMenu
istrue
, it should be explicitly checked that there is no modal open before closing the contextual menu on outside click.This is because, with the current behaviour, a click inside the modal would be captured as outside click for the
ContextualMenu
, causing that to be closed, and since the modal can be a direct child of thatContextualMenu
, it would end up being removed as well. See the problem more clearly in the following screen capture:The text was updated successfully, but these errors were encountered: