jackocnr/intl-tel-input

Validation of empty phone field (mandatory phone input * )

Closed this issue · 1 comments

Steps to reproduce

  1. Open the demo https://intl-tel-input.com/examples/validation-practical.html or https://intl-tel-input.com/examples/validation.html
  2. Don't enter any digits in input
  3. Click “validate”

Expected behaviour

The available "flag/option" for mandatory field.
* in the end of gray phone example / suggest
Red border around input similar for “Too short” or any other error.
Error that user should enter the phone number if there is some flag of mandatory field and form is sent by external button.

Actual behaviour

Nothing happens. No errors in console, no message for user or change in input look.

Initialisation options

https://intl-tel-input.com/examples/validation.html
https://intl-tel-input.com/examples/validation-practical.html

Thanks for raising this. I've tweaked it to show "Required" in this case. If you clear your cache and refresh, you should see the new version.