2
0

fix(typebot-js): 🐛 Open iframe on proactive message click

This commit is contained in:
Baptiste Arnaud
2022-07-06 08:32:39 +02:00
parent f1f529949d
commit 2e4d9d5a1d
4 changed files with 25 additions and 6 deletions

View File

@ -77,8 +77,9 @@ const onProactiveMessageClick = (
bubble: HTMLDivElement,
iframe: HTMLIFrameElement
): void => {
loadTypebotIfFirstOpen(iframe)
bubble.classList.add('iframe-opened')
iframe.style.display === 'none'
? openIframe(bubble, iframe)
: closeIframe(bubble, iframe)
bubble.classList.remove('message-opened')
}