releasebird-javascript-sdk 1.0.84 → 1.0.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/RbirdFormManager.js
CHANGED
|
@@ -56,8 +56,9 @@ export class RbirdFormManager {
|
|
|
56
56
|
if (this.displayedForms.has(formId)) {
|
|
57
57
|
// Double-check if the form element actually exists in DOM
|
|
58
58
|
const existingForm = document.getElementById(`rbird-form-${formId}`);
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
const existingOverlay = document.getElementById(`rbird-form-overlay-${formId}`);
|
|
60
|
+
if (!existingForm && !existingOverlay) {
|
|
61
|
+
// Form element was removed (e.g., closed modal or SPA navigation), allow re-rendering
|
|
61
62
|
this.displayedForms.delete(formId);
|
|
62
63
|
} else {
|
|
63
64
|
console.warn('[RbirdFormManager] Form is already displayed:', formId);
|