๐Ÿ‡ฎ๐Ÿ‡นItaly @g.rocchini

Account created on 10 February 2014, almost 11 years ago
#

Recent comments

๐Ÿ‡ฎ๐Ÿ‡นItaly g.rocchini

Hi guys

@jrockowitz, the line you told me is on the code of the module yet

@mubasshir-khan, I won't create a custom module, I would like to use the default code in web/modules/contrib/webform/js/webform.element.telephone.js

To be complete, the contrib webform module have the webform.element.telephone.js with

var options = {
  // The utilsScript is fetched when the page has finished.
  // @see \Drupal\webform\Plugin\WebformElement\Telephone::prepare
  // @see https://github.com/jackocnr/intl-tel-input
  utilsScript: drupalSettings.webform.intlTelInput.utilsScript,
  nationalMode: false
};
// Parse data attributes.
if ($telephone.attr('data-webform-telephone-international-initial-country')) {
  options.initialCountry = $telephone.attr('data-webform-telephone-international-initial-country');
}
if ($telephone.attr('data-webform-telephone-international-preferred-countries')) {
  options.preferredCountries = JSON.parse($telephone.attr('data-webform-telephone-international-preferred-countries'));
}
options = $.extend(options, Drupal.webform.intlTelInput.options);
$telephone.intlTelInput(options);

in this script I want to inject my custom setting

๐Ÿ‡ฎ๐Ÿ‡นItaly g.rocchini

g.rocchini โ†’ created an issue.

๐Ÿ‡ฎ๐Ÿ‡นItaly g.rocchini

I update the status by myself.
The problem was for the hosts config. I was working with different port on same IP, and was not working.
Managing it with different url all work fine.

Thanks

๐Ÿ‡ฎ๐Ÿ‡นItaly g.rocchini

I have the same problem, and with the patch of #66 all work fine for the link managed by CKEditor.
But if I use the Linkit widget for a link field, the proble is still here.
So, here you can find my patch suggestion.

Please let me know if anybody else have this problem

Production build 0.71.5 2024