You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When <sub element> is clicked on, the modal is opened. However, since the trigger is outside the modal, the closeXOnClickOutside handler is also called - and since sub element !== trigger element, it immediately closes the modal again
The solution for both modal types is to replace _this.XTriggerNode !== target with !this.XTriggerNode.contains(target).
The text was updated successfully, but these errors were encountered:
Sometimes modals don't seem to open when their trigger is click on. This is due to the following lines in the handler for clicking outside the modal:
co-design/js_src/header.ts
Lines 76 to 78 in 8ccc296
co-design/js_src/droppanel.ts
Lines 85 to 87 in 8ccc296
Note the check for
this.panelTriggerNode !== target
. Consider the following layout:When
<sub element>
is clicked on, the modal is opened. However, since the trigger is outside the modal, thecloseXOnClickOutside
handler is also called - and sincesub element !== trigger element
, it immediately closes the modal againThe solution for both modal types is to replace
_this.XTriggerNode !== target
with!this.XTriggerNode.contains(target)
.The text was updated successfully, but these errors were encountered: