react-magma
react-magma copied to clipboard
TimePicker: Entering a new time does not completely clear the input
Describe the bug The time picker right now expects the user to press the backspace if there are already 2 characters in the field, instead of removing all values and replacing them with the new number
To Reproduce Steps to reproduce the behavior:
- Go to https://next--upbeat-sinoussi-f675aa.netlify.app/api/time-picker/
- Replace the time with 11:59
- Try replacing the minutes from 59 to 30 by pressing the number 3 when the minutes are selected, then 0
- Notice that the time ends up being 50
Expected behavior TimePicker replacement should work like MUI https://mui.com/x/react-date-pickers/time-picker/ where pressing a number after the minutes or hours are already filled completely erases both numbers