Selector-widget surveys persist when trigger element unmounts
posthog-js@1.410.5
2 fixesThis release2 fixesBug fixesAI-tallied from the release notes
From the original release noteView original ↗
1.410.5
Patch Changes
- #4273
8ec3499Thanks @felipeatom! - Fix selector-widget surveys being abruptly removed while open when their trigger element is unmounted from the DOM (e.g. a dropdown or menu that hosts the trigger closes). The survey is now kept in place while open and only torn down once the user has closed it. Also fixes a related leak where, if the selector resolved to a different element while the survey was open, the old element's click listener was never removed and kept dispatching the show-widget event for the lifetime of the page. (2026-08-03)
Fetched August 3, 2026
