Skip to content

DateRangePicker | Wrap text of default error message in case of selection of invalid date. #5860

Open
@puneet-ahuja

Description

@puneet-ahuja

Provide a general summary of the issue here

The default error message is increasing the width of the calendar on selection of invalid date range.

RangePicker Error Message

Invalid.Date.Error.Message.mp4

🤔 Expected Behavior?

The error message should wrap to avoid sudden increase in width on selection of invalid range.

😯 Current Behavior

The error message is increasing the width of the calendar on selection of invalid date range.
Codesandbox link for reference.

💁 Possible Solution

We add some max-width to the container.

🔦 Context

No response

🖥️ Steps to Reproduce

Open Codesandbox link

Version

3.33.1

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

Mac OS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions