Skip to content

Commit e376e1d

Browse files
authored
fix(app): enable dialog dismiss on model selector (dialog.tsx) (#10203)
1 parent c130dd4 commit e376e1d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/ui/src/components/dialog.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
display: flex;
2121
align-items: center;
2222
justify-content: center;
23+
pointer-events: none;
2324

2425
[data-slot="dialog-container"] {
2526
position: relative;
@@ -41,6 +42,7 @@
4142
max-height: 100%;
4243
min-height: 280px;
4344
overflow: auto;
45+
pointer-events: auto;
4446

4547
/* Hide scrollbar */
4648
scrollbar-width: none;

packages/ui/src/context/dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function init() {
5353
}}
5454
>
5555
<Kobalte.Portal>
56-
<Kobalte.Overlay data-component="dialog-overlay" />
56+
<Kobalte.Overlay data-component="dialog-overlay" onClick={close} />
5757
{element()}
5858
</Kobalte.Portal>
5959
</Kobalte>

0 commit comments

Comments
 (0)