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

Unable to edit year when dayjs is used with <input type="date" /> value binding #2627

Open
Alluvi0n opened this issue Apr 10, 2024 · 0 comments

Comments

@Alluvi0n
Copy link

Alluvi0n commented Apr 10, 2024

I tried migrating from moment to dayjs, and this issue is preventing the year from being edited in <input type="date" /> elements, as the year briefly becomes '0000-XX-XX' (which is defaulted to 1900) as the user types.

I'm being forced to roll back our migration because of this incompatibly. This needs to be addressed before dayjs can be adopted.

Related PR

Chinese:

我尝试从 moment 迁移到 dayjs,这个问题导致无法在 元素中编辑年份,因为年份会短暂变为“0000-XX-XX”(默认为 1900),如下所示用户类型。

由于这种不兼容,我被迫回滚我们的迁移。在采用 dayjs 之前需要解决这个问题。

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