We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c130dd4 commit e376e1dCopy full SHA for e376e1d
packages/ui/src/components/dialog.css
@@ -20,6 +20,7 @@
20
display: flex;
21
align-items: center;
22
justify-content: center;
23
+ pointer-events: none;
24
25
[data-slot="dialog-container"] {
26
position: relative;
@@ -41,6 +42,7 @@
41
42
max-height: 100%;
43
min-height: 280px;
44
overflow: auto;
45
+ pointer-events: auto;
46
47
/* Hide scrollbar */
48
scrollbar-width: none;
packages/ui/src/context/dialog.tsx
@@ -53,7 +53,7 @@ function init() {
53
}}
54
>
55
<Kobalte.Portal>
56
- <Kobalte.Overlay data-component="dialog-overlay" />
+ <Kobalte.Overlay data-component="dialog-overlay" onClick={close} />
57
{element()}
58
</Kobalte.Portal>
59
</Kobalte>
0 commit comments