-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
I'm using the PhoneInput widget with the "saperateDialCode" option set to true,
and I check the validation at submit, so when I submit it adds the dial code automatically to the input value and gives me a validation error "The format of Phone Number is invalid."
but when I remove the "separateDialCode" option and enter the same number it would accept it normally
this is my input code:
<?= $form->field($model, 'phone_number')->widget(PhoneInput::className(), [ 'jsOptions' => [ 'onlyCountries' => array_values($countries['iso']), 'separateDialCode' => true, 'allowDropdown' => false, ], ] ])
and this is my validation code in the model
[['phone_number'], PhoneInputValidator::className()]
and I'm using the version '0.1.2'
combinator
Metadata
Metadata
Assignees
Labels
No labels