correct context proxy hack

This commit is contained in:
Niels Lyngsø
2024-01-04 11:45:50 +01:00
parent d8e75e2bb3
commit 1da1760d29

View File

@@ -52,7 +52,7 @@ export class UmbModalElement extends UmbLitElement {
// Note for this hack (The if-sentence):
// We do not currently have a good enough control to ensure that the proxy is last, meaning if another context is provided at this element, it might respond after the proxy event has been dispatched.
// To avoid such this hack just prevents proxying the event if its a request for the Modal Context.
if (event.apiAlias !== UMB_MODAL_CONTEXT_TOKEN.contextAlias) {
if (event.contextAlias !== UMB_MODAL_CONTEXT_TOKEN.contextAlias) {
event.stopImmediatePropagation();
const clonedEvent = new UmbContextRequestEventImplementation(
event.contextAlias,