dimitrov-adrian/directus-extension-masked-interface

Email not validated when deleting

enzolupia opened this issue · 0 comments

Expected Behavior

Validation on field is evaluated while typing and also when deleting characters.

Current Behavior

Using email template, validation seems to occur only while typing, deleting characters do not invalidate the field (if pattern is not respected anymore). In such case, validation only happens when input lose focus

Screen.Recording.2022-02-24.at.15.11.38.mov

Note: email was marked as invalid only after clicking outside the input field.

Steps to Reproduce

  1. Create a masked field with email template.
  2. Create a new field and input a valid email address, example test@email.com.
  3. Delete last 3 chars so that email is equals to test@email (<- invalid).