nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.63k stars 1.42k forks source link

[BUG] - datepicker only shows 6 days of the week #2979

Closed ManuelCarrascal closed 1 month ago

ManuelCarrascal commented 4 months ago

NextUI Version

^2.0.7

Describe the bug

I am using the default datepicker and when trying it I found an error that it does not load seven days a week but only six and I think that is wrong since in my case I need every day.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

just use the default datepicker component

Expected behavior

The default datepicker shows me all the days of the week but it is only showing six

Screenshots or Videos

image

image

Operating System Version

windows

Browser

Chrome

linear[bot] commented 4 months ago

ENG-816 [BUG] - datepicker only shows 6 days of the week

wingkwong commented 4 months ago

wondering if it is OS or browser problem. Can you screenshot the below storybook on your side?

https://storybook.nextui.org/?path=/story/components-datepicker--with-month-and-year-pickers&globals=locale:en-US

It looks fine on my side.

image

LucasLeone commented 4 months ago

I tried in Safari and works, but in chrome doesn't work, why?

                <DatePicker
                    label='Fecha'
                    showMonthAndYearPickers
                    value={selectedDate}
                    onChange={(e) => setSelectedDate(e)}
                    className='basis-full md:basis-5/12 mb-2 md:me-2 md:mb-0'
                    size='sm'
                />
ManuelCarrascal commented 4 months ago

I think the problem is in browsers that use base chromium because:

I was testing in chrome and it looks like this: image

while in mozilla firefox it looks fine image

I also tried brave to clear up doubts image

wingkwong commented 1 month ago

Fixed in https://github.com/nextui-org/nextui/pull/3416