fix(app): enable dialog dismiss on model selector (dialog.tsx) (#10203)
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
[data-slot="dialog-container"] {
|
[data-slot="dialog-container"] {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -41,6 +42,7 @@
|
|||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
min-height: 280px;
|
min-height: 280px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
pointer-events: auto;
|
||||||
|
|
||||||
/* Hide scrollbar */
|
/* Hide scrollbar */
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ function init() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Kobalte.Portal>
|
<Kobalte.Portal>
|
||||||
<Kobalte.Overlay data-component="dialog-overlay" />
|
<Kobalte.Overlay data-component="dialog-overlay" onClick={close} />
|
||||||
{element()}
|
{element()}
|
||||||
</Kobalte.Portal>
|
</Kobalte.Portal>
|
||||||
</Kobalte>
|
</Kobalte>
|
||||||
|
|||||||
Reference in New Issue
Block a user