This commit is contained in:
Niels Lyngsø
2023-06-05 11:33:02 +02:00
parent 83c8028b91
commit d7050f3a4f

View File

@@ -107,6 +107,7 @@ export class UmbModalContextClass<ModalData extends object = object, ModalResult
this.modalElement.appendChild(this.#modalRouterElement);
this.#observeModal(modalAlias.toString(), combinedData);
// Note, We are doing the Typing dance here because of the way we are correcting the submit method attribute type.
new UmbContextProviderController(
host,
UMB_MODAL_CONTEXT_TOKEN,
@@ -194,11 +195,6 @@ export class UmbModalContextClass<ModalData extends object = object, ModalResult
this.#innerElement.next(undefined);
}
}
public destroy() {
super.destroy();
// TODO: Make sure to clean up..
}
}
export const UMB_MODAL_CONTEXT_TOKEN = new UmbContextToken<UmbModalContext>('UmbModalContext');