INIT
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
<script lang="ts">
|
||||
import { mergeProps } from "svelte-toolbelt";
|
||||
import type { DatePickerContentProps } from "../types.js";
|
||||
import PopoverContent from "../../popover/components/popover-content.svelte";
|
||||
import { pickerOpenFocus } from "../../../internal/date-time/calendar-helpers.svelte.js";
|
||||
|
||||
let { ref = $bindable(null), onOpenAutoFocus, ...restProps }: DatePickerContentProps = $props();
|
||||
|
||||
const mergedProps = $derived(
|
||||
mergeProps({ onOpenAutoFocus }, { onOpenAutoFocus: pickerOpenFocus })
|
||||
);
|
||||
</script>
|
||||
|
||||
<PopoverContent {...mergedProps} bind:ref {...restProps} />
|
||||
Reference in New Issue
Block a user