formkit
formkit copied to clipboard
datetime-local field with initial value resets itself in firefox after the entry of a 0
Reproduction
https://formkit.link/1ead1ce0281ffa14252c6513c73f79ba
Describe the bug
If you have a datetime-local field with initial value and then e.g. select the day and enter a 0, Chrome takes the 0 as input and sets it for the day (you can then enter further numbers as expected). If you do this in Firefox, the entire field is reset. Interestingly, however, if you fill in a datetime-local field, click out and click in again and enter a 0, this works as intended.
https://github.com/user-attachments/assets/a4041e40-7df1-4652-a83d-18ddc84fd571
Environment
• OS: Windows • Browser Firefox • Version 127.0 (64-Bit) & 128.0.3 (64-Bit)