Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.
This repository was archived by the owner on May 19, 2025. It is now read-only.

No verification if the typed input in DateInput is out of the minDate and maxDate range. #538

@YounesZADI

Description

@YounesZADI

Subject of the issue

No verification if the typed input in DateInput is out of the minDate and maxDate range.

[BUG] Bug Reproduce Steps

  • Set minDate to 05/01/2021 and maxDate to 15/01/2021
  • Set ranges to [{ startDate: 06/01/2021, endDate: 14/01/2021 }] for example
  • Set editableDateInputs to True
  • Type in the start date input Jan 01, 2021 and press Enter
  • Although the date is grey visually, it the range is set from 01/01/2021 (note it is out of the minDate, maxDate range)

[BUG] Expected behaviour

  • user can't set the start date or end date out of the minDate, maxDate range using the DateInput
  • user is notified of the mistake by putting the input red and displaying a specific message error on hover using tootltip

Environment

Package Version: 1.4.0
React version: 16.12.0
Node version: 14.18.1
Browser: Chrome 96.0.4664.55

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