🐛 Fix bubble proper cleanup function
This commit is contained in:
@ -25,6 +25,9 @@ export const Bubble = (props: Props) => {
|
||||
await import('@typebot.io/js/dist/web')
|
||||
setIsInitialized(true)
|
||||
})()
|
||||
return () => {
|
||||
ref.current?.remove()
|
||||
}
|
||||
}, [])
|
||||
|
||||
const attachBubbleToDom = useCallback((props: Props) => {
|
||||
|
Reference in New Issue
Block a user