• Lupec@lemm.ee
    link
    fedilink
    arrow-up
    32
    ·
    edit-2
    10 months ago

    As a web developer of questionable frontend skills, it kinda looks like something you’d do as a band-aid solution if you had no idea how forms work or how to suppress their default events, which do happen to include the enter key being pressed. Really wild to go about it that route, whatever the intention was lol.

    Edit: While typing my other response down this comment thread, I realized for this to happen the developer must have actually suppressed the event correctly so it’s even weirder they chose to handle it like this

    • 𝒍𝒆𝒎𝒂𝒏𝒏@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      6
      ·
      10 months ago

      Edit: While typing my other response down this comment thread, I realized for this to happen the developer must have actually suppressed the event correctly so it’s even weirder they chose to handle it like this

      Probably users were submitting the form too early or something, either way I agree this is a bit of an unusual way to handle this lol