directus-extension-masked-interface
directus-extension-masked-interface copied to clipboard
Invalid item can still be saved
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
- Create a masked field with email template.
- Create a new field and input a valid email address, example [email protected].
- Notice that directus allow the item to be saved.
- Delete last 3 chars so that email is equals to test@email (<- invalid).
- Directus still allow the item to be saved.