New MWC component for entering input_datetime updates entity too eagerly when typing.
Checklist
- [X] I have updated to the latest available Home Assistant version.
- [X] I have cleared the cache of my browser.
- [X] I have tried a different browser to see if it is related to my browser.
Describe the issue you are experiencing
When I try to enter a two-digit hour (say, 10) and don't type the "10" ultra-fast, the new MWC field will update the input_datetime entity to "1:00" instead of "10:00". I can workaround by
- trying to enter a two digit hour several times until I've typed fast enough,
- first entering the second digit and then prefixing the first digit "1".
Both approaches trigger (generally unwanted) updates of the entity with a wrong time.
Tried Chrome and Safari on an up-to-date Mac and the HA app on iOS.
Describe the behavior you expected
I expect that either the entity update is less eager (say, lazy for 250~500 ms) or only triggered upon an explicit submit (pressing ENTER, focus leaving the field or so).
Steps to reproduce the issue
- Add an
input_datetimeentity which has time to Lovelace frontend. - Enter "10" in the hour field, typing somewhat slowly.
- The entity will update the hour of the entity to "1" and lose focus of the input field.
What version of Home Assistant Core has the issue?
core-2022.3.1
What was the last working version of Home Assistant Core?
core-2022.2.x
In which browser are you experiencing the issue with?
Google Chrome 99.0.4844.51
Which operating system are you using to run this browser?
macOS 12.2.1
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response
Can second this. Unusable on e.g. iPhone. To enter a two-digit minutes, currently I have to try up to 10 times, fast, slow, enter one digit, e.g. 3, then focus is lost and it is shown as 03, then select 0, delete 0, move cursor behind 3 and enter 0. And all this, if the focus is not lost again in the meantime. Unusable.
yes, same here. I only have this issue in the app so i'd put this issue in the android app github page. I do not see this behaviour in the chrome browser
yes, same here. I only have this issue in the app so i'd put this issue in the android app github page. I do not see this behaviour in the chrome browser
I've the issue too. But I also have it on the Chrome Browser of my Smartphone. I already opened a ticket on the android project, but this led me here...
Any news on this? On iPad or iPhone, you cannot type two-digits into such fields. Sometimes in the xth try. Even in Vivaldi it is happening on Windows:
I think it is dependent if there was a two digit input before. If yes, it is loosing focus after entering only one. If no, it is working most of the time to enter two.
30 minutes -> trying to enter 31 results in 03 03 minutes -> trying to enter 31 is mostly working
10 hours -> trying to add 11, resultes in 1 1 hours -> trying to add 11 is mostly working
Any news on this? On iPad or iPhone, you cannot type two-digits into such fields. Sometimes in the xth try. Even in Vivaldi it is happening on Windows:
I think it is dependent if there was a two digit input before. If yes, it is loosing focus after entering only one. If no, it is working most of the time to enter two.
30 minutes -> trying to enter 31 results in 03 03 minutes -> trying to enter 31 is mostly working
10 hours -> trying to add 11, resultes in 1 1 hours -> trying to add 11 is mostly working
Yes, I have the same problem. On first try it adds a zero, if you retry it with the same first number, you can add the second one, just like it should.
My description of the same bug on the Android frontend repo: https://github.com/home-assistant/android/issues/2384
yea i have this same thing too, i got used to it actually :) Just try twice to add a double digit time first the first digit and then both
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Still not usable on mobile.
Duplicate of #11861
Please subscribe to the duplicate referenced. I'll take a look soon.