fix: App theme being used in routing-form embed (#19489)

* fix wrong theme routing-form embed

* fix wrong theme routing-form embed
This commit is contained in:
Hariom Balhara authored and GitHub committed 2025-02-28 23:50:46 +05:30
1 parent 6068829d70
commit 564c84dade
13 files changed
+433 -157

No files matched your search

+7 -2
View File
@@ -664,7 +664,13 @@ class CalApi {
config.prerender = "true";
}
const configWithGuestKeyAndColorScheme = withColorScheme(Cal.ensureGuestKey(config), containerEl);
const configWithGuestKeyAndColorScheme = withColorScheme(
Cal.ensureGuestKey({
...config,
embedType: "modal",
}),
containerEl
);
const existingModalEl = document.querySelector(`cal-modal-box[uid="${uid}"]`);
if (existingModalEl) {
@@ -695,7 +701,6 @@ class CalApi {
throw new Error("iframeAttrs should be an object");
}
config.embedType = "modal";
let iframe = null;
if (!iframe) {