Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePicker Decade view is bugged #1516

Open
2 tasks done
Raemy92 opened this issue Dec 10, 2024 · 0 comments
Open
2 tasks done

DatePicker Decade view is bugged #1516

Raemy92 opened this issue Dec 10, 2024 · 0 comments

Comments

@Raemy92
Copy link

Raemy92 commented Dec 10, 2024

  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version

Steps to reproduce

  1. Click to open the DatePicker
  2. Go to the Decades-View (highest)
  3. Select a random decade (ex. 1990)

Current behavior

After clicking on a decade, the DatePicker often (not everytime) shows the wrong decade (ex. you click on 1990 and it shows 2020).
This occurs only on the decades view.

See this screen capture for better understanding: https://github.com/user-attachments/assets/c0e66f04-193a-4e78-8ab9-1851979bc741

Expected behavior

The click on the decade should show the correct years.

Context

I've tested it on Chrome (131.0.6778.109) and Firefox (133.0). The DatePicker is used to select the users birthdate, so it happens often that the user will be in the decades view and see this behaviour.

It's also happening on the Flowbite-React documentation page (https://flowbite-react.com/docs/components/datepicker), so it's a general problem and not only in this context.

I suggest as a temporary workaround that we can add a property to the DatePicker to choose which view should be the highest (days, months, years, decades) or to remove the decades view entirely until it works properly.

Thanks and best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant