1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-07 09:29:59 +00:00

fix: modal focus scroll bug (#738)

This commit is contained in:
Vjacheslav Trushkin 2023-01-03 15:02:54 +02:00 committed by GitHub
parent 055df9d28c
commit 8b219cdb73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -66,6 +66,8 @@ const { activate } = useFocusTrap(elDialogRoot, {
allowOutsideClick: true,
clickOutsideDeactivates: true,
escapeDeactivates: true,
preventScroll: true,
returnFocusOnDeactivate: true,
})
defineExpose({

View file

@ -126,6 +126,7 @@ useIntersectionObserver(video, (entries) => {
</template>
<template v-else>
<button
type="button"
focus:outline-none
focus:ring="2 primary inset"
rounded-lg