Skip to content

Commit

Permalink
fix: lock body scroll on initial render (#456)
Browse files Browse the repository at this point in the history
Co-authored-by: zernonia <59365435+zernonia@users.noreply.github.com>
  • Loading branch information
enkot and zernonia committed Oct 19, 2023
1 parent 5fad33a commit f2fa867
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/radix-vue/src/Dialog/DialogOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const isLocked = useBodyScrollLock()
watch(
rootContext.open,
isOpen => (isLocked.value = isOpen),
{ immediate: true },
)
</script>

Expand Down

0 comments on commit f2fa867

Please sign in to comment.