jan-vince/smallcontactform

Hey, when submitting the form I get following javascript error in debug

Closed this issue · 3 comments

Uncaught TypeError: Cannot read properties of null (reading 'classList')
at HTMLFormElement. (validate.js:24:41)
(anonymous) @ validate.js:24

==> line 24 corresponds to thisForm.querySelector('.loading').classList.add('d-block');

Looks like loading container is missing in html template

Hi @freeyland,

what is your setup? Versions of OC, Contact form plugin, how do you use the plugin (where is component)?

Hi @jan-vince
October 3.5.14
The component is inside a partial

Try to put your component in layout or CMS page.

In partial you can call it with {% component 'contactForm' %}, but component definition should not be placed here.