Menu

76 text fields in our app, zero enterkeyhint, and one required checkbox nobody can see
📰

76 text fields in our app, zero enterkeyhint, and one required checkbox nobody can see

DEV Community: html·Daniel Pertu·2 days ago
#HKP0JY9r
#devto2#devto#dev#field#form
Reading 0:00
15s threshold

The attributes that decide what a phone shows when somebody taps a field never come up in code review. They are not visible on a laptop, they do not break a test, and they are the difference between a numeric keypad and a full QWERTY with a comma on the wrong layer. So I counted all of them in Nakodo .

The inventory

90 input and textarea tags across 582 source files. 14 are hidden inputs carrying state through a form, so 76 are fields a person can type into, and they live where you would expect: 50 behind the login, 14 in the admin panel, five on the sign-in and sign-up pages, two on public pages, plus the two primitives themselves.

The remarkable part is how few raw elements there are. Outside ui/input.tsx and ui/textarea.tsx , the entire repository contains four bare input or textarea tags, and all four are radio buttons inside two radio-card components.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.