mirror of
https://github.com/elk-zone/elk.git
synced 2024-09-06 12:19:08 +01:00
fix: modal focus scroll bug (#738)
This commit is contained in:
parent
055df9d28c
commit
8b219cdb73
2 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,8 @@ const { activate } = useFocusTrap(elDialogRoot, {
|
||||||
allowOutsideClick: true,
|
allowOutsideClick: true,
|
||||||
clickOutsideDeactivates: true,
|
clickOutsideDeactivates: true,
|
||||||
escapeDeactivates: true,
|
escapeDeactivates: true,
|
||||||
|
preventScroll: true,
|
||||||
|
returnFocusOnDeactivate: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
|
|
|
@ -126,6 +126,7 @@ useIntersectionObserver(video, (entries) => {
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
focus:outline-none
|
focus:outline-none
|
||||||
focus:ring="2 primary inset"
|
focus:ring="2 primary inset"
|
||||||
rounded-lg
|
rounded-lg
|
||||||
|
|
Loading…
Reference in a new issue