Skip to content

DateField Component Rendering Incorrectly in UI Extensions for Admin #3

@agonsgd

Description

@agonsgd

Environment:

Description:
The DateField component's date picker popover is not rendering correctly within the UI Extensions for the Admin. The date picker appears cut off and is not fully visible, making it impossible to select some dates.

Steps to Reproduce:

  1. Use the DateField component inside an InlineStack within the admin order-details block.
  2. Click on the DateField to trigger the date picker.
  3. Observe that the date picker's UI is truncated and not fully displayed on the screen.

Expected Behavior:
The date picker should render fully and be completely visible, allowing for any date to be selected without any part of the UI being cut off.

Actual Behavior:
The date picker UI is partially cut off on the screen, and some dates cannot be selected as they are not visible.

Code snippet:

<InlineStack inlineGap="base"> <DateField label="Expiration Date" selected={expiresAt} onChange={(value: string) => setExpiresAt(value)} disabled={disabledDates} /> </InlineStack>

Screenshots/Attachments:

Image

Additional Context:
The problem occurs when the DateField component is placed within a UI that has limited space or when it's positioned near the edge of a container, which may cause the date picker to be partially hidden. This issue has a significant impact on the user experience as it hinders the ability to select an expiration date for credit added to a customer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions