wip(desktop): progress
This commit is contained in:
parent
8e15bcb68e
commit
3bb546c94d
12 changed files with 474 additions and 97 deletions
|
|
@ -5,7 +5,7 @@ import {
|
|||
DialogCloseButtonProps,
|
||||
DialogDescriptionProps,
|
||||
} from "@kobalte/core/dialog"
|
||||
import { ComponentProps, type JSX, onCleanup, Show, splitProps } from "solid-js"
|
||||
import { ComponentProps, type JSX, onCleanup, onMount, Show, splitProps } from "solid-js"
|
||||
import { IconButton } from "./icon-button"
|
||||
|
||||
export interface DialogProps extends DialogRootProps {
|
||||
|
|
@ -35,6 +35,11 @@ export function DialogRoot(props: DialogProps) {
|
|||
})
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
// @ts-ignore
|
||||
document?.activeElement?.blur?.()
|
||||
})
|
||||
|
||||
return (
|
||||
<Kobalte {...others}>
|
||||
<Show when={props.trigger}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue