publishpress / PublishPress-Blocks

PublishPress Blocks adds the missing blocks and configuration you need to build professional websites. Take the control of the new Gutenberg editor with user edition profile configuration and 20+ new blocks and options.
15 stars 8 forks source link

Saving invalid format of email doesn't show any warning message #425

Open Sumitpalkaur opened 3 years ago

Sumitpalkaur commented 3 years ago

Describe the bug In contact form block , invalid format of email in sender/receiver information can be saved w/o warning message. To Reproduce** Steps to reproduce the behavior:

  1. Install and activate "PublishPress Blocks" plugin
  2. Go to “Add New post” or choose a post to edit.
  3. Add title as "Contact form block"
  4. Click "+/plus" sign to add a new PublishPress block.
  5. Type "Contact form" in search box and click on appeared "contact form" block.
  6. On right side click on "settings" under "form settings" in "Notice" message
  7. Email & form page opens.
  8. Type invalid format in sender/receiver email address.
  9. Click "Save button"

Expected behavior There should be a warning message for invalid email format and should not be saved.

**Actual Behaviour" Sender/Receiver information get saved with invalid emails.

Desktop (please complete the following information):

contact email

htmgarcia commented 3 years ago

Looks similar to #325