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:
1 parent
6068829d70
commit
564c84dade
13 files changed
+433
-157
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user