wip(desktop): progress
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user