element [Bug Report] el-calendar highlight the previous day with click on a day

du7egjpx  于 5个月前  发布在  其他
关注(0)|答案(3)|浏览(43)

Element UI version

2.15.1

OS/Browsers version

Mac OS 11

Vue version

2.6.12

https://jsfiddle.net/ndyhb6em/

Steps to reproduce

Just go to https://element.eleme.io/#/en-US/component/calendar, the offical website

What is Expected?

The day that is clicked on should be highlighted

What is actually happening?

The previous day that is clicked on is highlighted

fbcarpbf

fbcarpbf1#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

bd1hkmkf

bd1hkmkf2#

@C0deZLee in my case, I can toggle this behaviour if I remove the v-model in el-calendar

xesrikrc

xesrikrc3#

Any update on this one?

Like previously stated by Adrian a v-model must be used for this to happen.

A simple repro step :

  • Use a time zone : New York United States (UTC-05)
  • Go to the basic exemple of the calendar component from the Element-UI site (use a v-model): https://element.eleme.io/#/en-US/component/calendar#basic
  • Select a new date

Result: The previous date is always selected. If we select 11 then the 10 is selected.

Can be related to this : https://stackoverflow.com/a/41125840

Hope it help to fix this one. We actually use it and need the v-model.

相关问题