From aa796030e354d8e82a0fa02c0077586a5cd7698d Mon Sep 17 00:00:00 2001 From: Mattias Andersson Date: Wed, 18 Sep 2024 12:49:20 +0200 Subject: [PATCH] - Add zIndex and appendTo to DateRangeDualTextInput. --- .../DateRangeDualTextInput.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/calendar/src/components/input-types/date-range-dual-text-input/DateRangeDualTextInput.tsx b/packages/calendar/src/components/input-types/date-range-dual-text-input/DateRangeDualTextInput.tsx index 19a8aba0b..32ff64af0 100644 --- a/packages/calendar/src/components/input-types/date-range-dual-text-input/DateRangeDualTextInput.tsx +++ b/packages/calendar/src/components/input-types/date-range-dual-text-input/DateRangeDualTextInput.tsx @@ -4,7 +4,10 @@ import { TextInputProps, ValueAndOnValueChangeProps, } from "@stenajs-webui/forms"; -import { ControlledPopover } from "@stenajs-webui/tooltip"; +import { + ControlledPopover, + ControlledPopoverProps, +} from "@stenajs-webui/tooltip"; import { isAfter } from "date-fns"; import * as React from "react"; import { useMemo, useRef } from "react"; @@ -27,7 +30,8 @@ import { defaultMaxDate } from "../../../config/DefaultMaxDate"; export interface DateRangeDualTextInputProps extends ValueAndOnValueChangeProps, OptionalMinMaxDatesAsString, - Pick { + Pick, + Pick { onEsc?: () => void; onEnter?: () => void; onBlur?: () => void; @@ -50,6 +54,8 @@ export function DateRangeDualTextInput({ widthRight = 128, variant, disabled, + zIndex, + appendTo, }: DateRangeDualTextInputProps) { const { startDate, endDate } = value || {}; @@ -121,6 +127,8 @@ export function DateRangeDualTextInput({ hideArrow restoreFocus={false} returnFocus={false} + zIndex={zIndex} + appendTo={appendTo} renderTrigger={(props) => (