Breizhtorm / Contact-Form-7-Signature-Addon

An addon to CF7 for adding handwritten signature to Wordpress forms
GNU General Public License v2.0
11 stars 7 forks source link

TypeError "Cannot read property 'classList' of null" on Submit #13

Open jankrikava opened 3 years ago

jankrikava commented 3 years ago

Hey there,

first off thanks for this great wp plugin!

I can't get rid of this error (index.js?ver=5.4:formatted:196):

TypeError: Cannot read property 'classList' of null
    at a (index.js?ver=5.4:formatted:150)
    at Array.forEach (<anonymous>)
    at index.js?ver=5.4:formatted:188
(anonymous) @ index.js?ver=5.4:formatted:196
Promise.catch (async)
f @ index.js?ver=5.4:formatted:195
(anonymous) @ index.js?ver=5.4:formatted:464

While submitting an error notification pops up but with no error text: image Once I'm submitting again the submit is successful, the success notification pops up and everything is fine.

Plugins/Themes used:

Would appreciate some help or a quick hint. Thanks upfront for the help!

jankrikava commented 3 years ago

Fixed it while reading through the plugin's wordpress.org section.

chloemccarty's solutions worked fine for me:

Will leave this ticket open for you to fix it in the repo.