Skip to content

Return a cleanup function from on method#288

Open
adekbadek wants to merge 1 commit intomasterfrom
fix/handle-closing
Open

Return a cleanup function from on method#288
adekbadek wants to merge 1 commit intomasterfrom
fix/handle-closing

Conversation

@adekbadek
Copy link
Member

This way the height-setting interval can be cleared. Before, when the chat element was removed from the DOM, the interval threw errors in the console, as the iframeElement no longer existed.

This way the height-setting interval can be cleared
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant