Preact: Firefox validation triggers on input component render

Created on 4 Jan 2018  路  4Comments  路  Source: preactjs/preact

Hi, I noticed that on Firefox, any form inputs that are required are immediately validated. This results in the inputs having a red error outline on page load. I ran into this on Preact v8.1.0 and Firefox v58.0b10.

It looks like React recently fixed this: https://github.com/facebook/react/issues/8395. The issue seems well documented in the thread. I might be able to poke around this weekend to offer assistance, but I just wanted to bring this up.

Thanks!

bug

Most helpful comment

I don't think this is still an issue. I tested the behavior out on the latest Firefox Developer Edition 71.0b12 (64-bit) and input does not validate until the form is submitted.

Here is a sandbox to verify: https://codesandbox.io/s/kind-firefly-6fbcx

All 4 comments

Sorry for the late reply - this is interesting! I'd be happy to discuss if you want to jump on Slack.

Does this bug still exist. If so I would be willing to help.

I don't think this is still an issue. I tested the behavior out on the latest Firefox Developer Edition 71.0b12 (64-bit) and input does not validate until the form is submitted.

Here is a sandbox to verify: https://codesandbox.io/s/kind-firefly-6fbcx

Great to hear that and thank you for digging up this issue @Rafi993 will close this now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jasongerbes picture jasongerbes  路  3Comments

kossnocorp picture kossnocorp  路  3Comments

marcosguti picture marcosguti  路  3Comments

jescalan picture jescalan  路  3Comments

rajaraodv picture rajaraodv  路  3Comments