Skip to content

Date picker resets the date to nearest valid date when a users manually enters a date that is less than min date or greater than max date.  #316

@Knksumanth

Description

@Knksumanth

This isnt really an issue., but there should be a way to figure out when this happens and to show a message to user.

To detect this change, I found that in the date object , there is an overflow flag which is set to -2 when a invalid date is picked and -1 when valid date is picked. I have tried many times with many different dates and although I am sure that I can go ahead and use this value to detect this kind of auto changing of the date., I also wanted to check if there is any better way of either stopping this auto resetting of the date, or right way to detect this change/date reset.?

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