Since the rename to HotDog, forms couldn't be sent. The markup sets data-hotdog-form, but the script still read form.dataset.clForm, so every form asked the endpoint for the token of a form called undefined, showed "This form can't be sent right now", and never sent.
One-line fix in hotdog-forms.js, plus a test that reads the attribute from the rendered form and checks the script uses the same one. The test fails without the fix.
Found while checking the contact-forms pack (#26) against a running endpoint. Every release since 0.1.0 has this bug, so it's worth a patch release on its own.
Since the rename to HotDog, forms couldn't be sent. The markup sets `data-hotdog-form`, but the script still read `form.dataset.clForm`, so every form asked the endpoint for the token of a form called `undefined`, showed "This form can't be sent right now", and never sent.
One-line fix in `hotdog-forms.js`, plus a test that reads the attribute from the rendered form and checks the script uses the same one. The test fails without the fix.
Found while checking the contact-forms pack (#26) against a running endpoint. Every release since 0.1.0 has this bug, so it's worth a patch release on its own.
The rename to HotDog changed the form's attribute to data-hotdog-form but
left the script reading dataset.clForm, so every form asked the endpoint for
the token of a form called "undefined", showed "This form can't be sent
right now" and couldn't be sent. A test now ties the script to the
attribute the markup sets.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Since the rename to HotDog, forms couldn't be sent. The markup sets
data-hotdog-form, but the script still readform.dataset.clForm, so every form asked the endpoint for the token of a form calledundefined, showed "This form can't be sent right now", and never sent.One-line fix in
hotdog-forms.js, plus a test that reads the attribute from the rendered form and checks the script uses the same one. The test fails without the fix.Found while checking the contact-forms pack (#26) against a running endpoint. Every release since 0.1.0 has this bug, so it's worth a patch release on its own.