Skip to content

If the value entered 0 don't focus the next field when there is a max value set to sigle digit month/date #606

@Moleesh

Description

@Moleesh

Before you start - checklist

  • I followed instructions in documentation written for my React-Date-Picker version
  • I have checked if this bug is not already reported

Description

If the value entered 0 don't focus the next field when there is a max value set to sigle digit month/date

Steps to reproduce

To reproduce the issue we need to set the year first to the right year

example min, max is 2023/04/01

type year to 2023 then come to month and type 0 it will go to the day

image

Expected behavior

It should stay in the current field month/day

Actual behavior

It goes to the next field

Additional information

potentianl fix #605

It hppens to year field if the max year is in single digit
or let say 1/1/100

and user types 0100

Environment

  • Browser (if applicable):
  • React-Date-Picker version:
  • React version:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions