olton / Metro-UI-CSS

Impressive component library for expressive web development! Build responsive projects on the web with the first front-end component library in Metro Style. And now there are even more opportunities every day!
http://metroui.org.ua/
MIT License
7.02k stars 1.97k forks source link

Calendar Picker Component Bug #1824

Closed Stankman closed 3 years ago

Stankman commented 3 years ago

Describe the bug When selecting a date it chooses 2 dates.

To Reproduce https://codepen.io/RodolfoXDR/pen/YzQGzYX

Expected behavior Work as on documentation

Screenshots image

Desktop (please complete the following information):

xscode-auto-reply[bot] commented 3 years ago

Thanks for opening a new issue. The author has been notified and will review it as soon as possible. For urgent issues and priority support, visit https://xscode.com/olton/Metro-UI-CSS or Patreon

olton commented 3 years ago

2021-09-04-09-00-54 All works fine for me

Stankman commented 3 years ago

Hmmm, it is pretty odd.

On the codepen I still see this bug, what do you think it could be?

olton commented 3 years ago

Can you record a short video of the problem?

Stankman commented 3 years ago

Metrroui bug

Stankman commented 3 years ago

I already erased cache thinking it could be that, I also tested it on Microsoft Edge and same thing happens, I reset my PC and it keeps bugging.

And it is pretty strange cuz, on metroui docs, it does work well

Stankman commented 3 years ago

Update: I tested it on my iPhone and it is also bugged

olton commented 3 years ago

show your browser console

Stankman commented 3 years ago

Metrroui bug3

olton commented 3 years ago

Do you have a Metro connected twice?

Stankman commented 3 years ago

What do you mean connected twice? Like on codepen I haven't changed anything (https://codepen.io/RodolfoXDR/pen/YzQGzYX)

olton commented 3 years ago

In your console, I see connected metro.js and metro.min.js

Stankman commented 3 years ago

image

olton commented 3 years ago

2021-09-06-19-48-21

Stankman commented 3 years ago

Yeah, I see what you mean, but how is that possible if I'm only using the external JS metro.min file

Stankman commented 3 years ago

And for example on MetroUI Docs I don't know if its correct but when selecting a Date it is marked as "Today"

image

olton commented 3 years ago

The Docs uses an old version of Metro 4 (4.4.3) In this version calendar-picker works as you see. For selected date executes internal method setToday(selected_date)

Stankman commented 3 years ago

image

Look, I tested it on my iPhone and same thing happens, really I don't know what's happening X'D