Scheduling infrastructure for absolutely everyone.
fix: Embed - Do not reuse the modal on reopening it. (#17171)
Hariom Balhara05c1ad885be8
diff --git a/packages/embeds/embed-core/src/embed.ts b/packages/embeds/embed-core/src/embed.tsindex 99210b962ea..ec5e3bb5891 100644--- a/packages/embeds/embed-core/src/embed.ts+++ b/packages/embeds/embed-core/src/embed.ts@@ -690,7 +690,10 @@ class CalApi {if (__prerender) {this.preloadedModalUid = uid;} else {- this.modalUid = uid;+ // Intentionally not setting it to have the behaviour of reusing the same modal. Because it causes outdated content that might not be valid based on+ // 1. The time difference b/w reopening(availability getting changed in b/w)+ // 2. User using different query params but they not being used because of the same modal being reused. Happens in case of headless router being opened in embed+ // this.modalUid = uid;}if (typeof config.iframeAttrs === "string" || config.iframeAttrs instanceof Array) {