🐛 (stream) Fix target attribute being trimmed on message stream

This commit is contained in:
Baptiste Arnaud
2023-12-13 14:47:06 +01:00
parent fbddddcfa0
commit bf626bb0a3
7 changed files with 14 additions and 9 deletions

View File

@@ -24,13 +24,13 @@ export const initStandard = (props: BotProps & { id?: string }) => {
export const initPopup = (props: PopupProps) => {
const popupElement = document.createElement('typebot-popup')
Object.assign(popupElement, props)
document.body.appendChild(popupElement)
document.body.prepend(popupElement)
}
export const initBubble = (props: BubbleProps) => {
const bubbleElement = document.createElement('typebot-bubble')
Object.assign(bubbleElement, props)
document.body.appendChild(bubbleElement)
document.body.prepend(bubbleElement)
}
type Typebot = {