directus-extension-masked-interface icon indicating copy to clipboard operation
directus-extension-masked-interface copied to clipboard

Invalid item can still be saved

Open enzolupia opened this issue 2 years ago • 4 comments

Expected Behavior

Invalid fields prevent item from being saved.

Current Behavior

Invalid field still allow item to be saved .

https://user-images.githubusercontent.com/32568361/155541313-ccf9bbd6-34f4-4605-b6d9-2373c0f601d7.mov

Apparently, if the field is marked as valid at least once, directus will allows to save the item even if it not valid anymore.

Steps to Reproduce

  1. Create a masked field with email template.
  2. Create a new field and input a valid email address, example [email protected].
  3. Notice that directus allow the item to be saved.
  4. Delete last 3 chars so that email is equals to test@email (<- invalid).
  5. Directus still allow the item to be saved.

enzolupia avatar Feb 24 '22 14:02 enzolupia