Describe the bug
Trying to use this with vuejs makes it kinda hard to use.
Basically any time you type a number while being on the hours part, it immediately shifts to minutes (Typing 1 while being on hours, shifts to minutes).
Thus making it impossible to type hours completely.
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/Herz3h/test-html-duration-picker
yarn install
yarn serve
Go to http://localhost:8080/
Put cursor on hours and type any number
Expected behavior
It should stay on hours until it is done then it should shift to minutes.
Desktop (please complete the following information):
- OS: [e.g. iOS] MacOS Catalina
- Browser [e.g. chrome, safari] Chrome 85.0.4183.121 (64bits)
- Version [e.g. 22] 2.2.8 (latest)
Additional context
Add any other context about the problem here.
Edit: After trying to figure out the problem, it seems that it really depends where you click. If say I have this duration:
12:34
And click on the 2, the above weird behavior happens. However clicking on the 1, it behaves as expected.
Wouldn't it be better if we put cursor to leftmost digit on every click (If I click hours it goes to leftmost digit, if I click minutes it goes to leftmost digit) ?