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

When using todayHighlight today isn't highlighted when going from selecting today to some other date #29

Open
samal-rasmussen opened this issue Dec 1, 2023 · 0 comments

Comments

@samal-rasmussen
Copy link

samal-rasmussen commented Dec 1, 2023

When using todayHighlight today is not highlighted when you start with today selected and then select some other date. The selected item gets the highlighted class removed, and it doesn't get added back when unselecting.

Today will get highlighted when you switch month back and forth, as this fully redraws the ui.

Issue is caused by the removal of bg-gray-100 from the selected item here:
https://github.com/themesberg/flowbite-datepicker/blob/98eccf3611605ca4ff6b2cf8a65f72d89ab6052b/js/picker/views/DaysView.js#L193C160-L193C160

@samal-rasmussen samal-rasmussen changed the title todayHighlight doesn't update when selecting date. When using todayHighlight today isn't highlighted when going from selecting today to some other date Dec 1, 2023
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