Open i-panov opened 6 years ago
I understood what was the matter! It looks like a bug! PhoneInputAsset
is not included intlTelInput-jquery.min.js
. Including it manually corrected the situation (the widget was displayed), but this is not a solution. Please add it because it is obviously a bug!!!
@Borales Will you react to this? Or should I start looking for another solution? I already wrote you a pull request, but you ignore me.
@i-panov Hi, sorry for the delay. Thank you for your PR, I posted a comment for it.
Having the same issue with the last version.
i-panov path fix it!!
The fix:
src/PhoneInputAsset.php
public $js = [
'build/js/utils.js',
'build/js/intlTelInput.min.js',
'build/js/intlTelInput-jquery.min.js', <------------ ADD THIS
they have removed jquery dependency on main file, you have to include jquery version in PhoneInputAsset
Issue appeared a year ago. And it still there!
@andrey-denisenko @alireza-salehi please check 0.3.0 release
Please update Packagist to reflect 0.3.0 tag
@Borales maybe something went wrong with the GitHub Hook - latest version on packagist.org is 0.2.1 https://packagist.org/packages/borales/yii2-phone-input https://packagist.org/about#how-to-update-packages
apologies, I had to upgrade Packagist webhooks, it's ok now
0.3.0 tag doesn't contains @i-panov's fix. It works only with .min
version.
An error occurs on the handler registration line:
$('#account-phone').intlTelInput();
I can not understand why this is happening? Help me please!