4 ms·
Whenever I see these form frameworks the first thing I do is click the label to ensure it focuses the input field. Aaaand pass, good job!
by pupppet 4y ago
Whenever I see these form frameworks the first thing I do is click the label to ensure it focuses the input field. Aaaand pass, good job!
- Semaphor 4y agoThat's a very low bar, I wouldn't even check because it's to be expected. Are there any form frameworks getting traction that are so broken?
- ditsuke 4y agoWhat would you know, today I learned
- deleted 4y ago[deleted]
- KronisLV 4y agoIt does appear to do that for me in their example on the homepage (desktop Firefox), though? Doesn't this happen by default in most cases where a regular <label/> is used? https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label https://developer.mozilla.org/en-US/docs/Web/HTML/Element/la... > When a user clicks or touches/taps a label, the browser passes the focus to its associated input (the resulting event is also raised for the input). That increased hit area for focusing the input provides an advantage to anyone trying to activate it — including those using a touch-screen device.
- pupppet 4y agoIt only occurs when you use the label's for attribute to manually associate the label with the input, or wrap both the label text and the input in the same label.