Skip to content

Commit df3a17e

Browse files
author
Rishi Raj Jain
authored
🐛 Freeze body overflow when opening a Popup embed (#937)
fix #763 /claim #763 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ### Summary by CodeRabbit - **Enhancement**: Improved the visibility management of the bot in the popup. This update ensures a smoother and more intuitive user experience when interacting with the bot. - **Bug Fix**: Resolved an issue where certain styles could interfere with the bot's visibility in the popup. The update prioritizes the necessary style settings, ensuring the bot's visibility is maintained as expected, regardless of other conflicting styles. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 3e06d89 commit df3a17e

File tree

1 file changed

+1
-1
lines changed
  • packages/embeds/js/src/features/popup/components

1 file changed

+1
-1
lines changed

packages/embeds/js/src/features/popup/components/Popup.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const Popup = (props: PopupProps) => {
9090
const openBot = () => {
9191
setIsBotOpened(true)
9292
popupProps.onOpen?.()
93-
document.body.style.overflow = 'hidden'
93+
document.body.style.setProperty('overflow', 'hidden', 'important')
9494
document.addEventListener('pointerdown', closeBot)
9595
}
9696

0 commit comments

Comments
 (0)