Hey <#CFKUPJZ7W|tribe> Weird question but I have b...
# tribe
d
Hey #tribe Weird question but I have been interviewing some people who were shortlisted by our company for frontend developer. I just received an assignment as part of process and it included form submit of with just one input field. Instead of wrapping
input
with
form
element the person used handleKeyDown to trigger form submission on enter and I don't like that. Also, instead of actually using
disabled
prop for submit button, the person just styled the button background grey if the input doesn't have the value. Am I the only one who cares about this? Am I being too pedantic?
๐Ÿ‘€ 1
e
I donโ€™t like the grey for sure, I would have definitely pointed that out because itโ€™s a bug. For keydown I donโ€™t really mind though TBH.
a
People have different ways of solving/building something and a lot of folks seem to miss on web accessibility and semantic HTML side of things. I'm sure he can learn and do better provided he's guided and willing to learn. also +1 to @early-furniture-69813, keyDown is an acceptable case (I've seen people using it).
๐Ÿ‘๐Ÿผ 1
๐Ÿ‘ 2
shameless plug: I'm also currently interviewing for frontend roles, I'd appreciate it if you could refer me (provided position is still open).
โž• 1
d
@astonishing-evening-41535 Sure. Send me your resume. I will take a look. If seems a good it. I will refer you.
๐Ÿ™Œ 1
I'm sure he can learn and do better provided he's guided and willing to learn.
Yeah. Thats true. I know.
g
Grey is definitely a bug. Changing it to grey doesn't help with it's use nor does it signal disabled for an accessibility software. I've actually used
on:input
in svelte last week to auto submit a TOTP form once 6 digits are entered. But would've definitely given a comment if a team mate was checking for enter explicitly. Guess you aren't being too pedantic ๐Ÿ˜‚
w
I personally care about the semantics and attention to detail while hiring, in cases like these, I usually get on a call with the candidate and ask them why they took these design decisions to let them explain their thought process. Moreover, I would try to dig deeper on his thought process to understand if this was just one of case or they have different approach towards solving such problems.
๐Ÿ’ฏ 4
w
+1 to what Bilal said. Ask them if there are any improvements they could've made, and ask them about their thought process on building this.