nextui icon indicating copy to clipboard operation
nextui copied to clipboard

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

Open ManuelCarrascal opened this issue 9 months ago • 3 comments

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

ManuelCarrascal avatar May 11 '24 05:05 ManuelCarrascal

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

wingkwong avatar May 11 '24 06:05 wingkwong

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'
                />
 

LucasLeone avatar May 11 '24 23:05 LucasLeone

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

ManuelCarrascal avatar May 13 '24 02:05 ManuelCarrascal

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

wingkwong avatar Aug 14 '24 18:08 wingkwong