Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phone automatically hyperlinked in iOS Safari eventhough phone is set as false #416

Open
rohit-131 opened this issue Feb 3, 2025 · 1 comment

Comments

@rohit-131
Copy link

rohit-131 commented Feb 3, 2025

Hey, phone is automatically hyperlinked in iOS Safari even though phone is set as false. Working fine for other browsers

messsageToBeReturned = AutoLinker.link(finalMessage, {
      replaceFn: addClassToLinkedMessage,
      phone: false }
});

Also, tried updating the custom replacement function. Didn't worked

const addClassToLinkedMessage = (match) => {
  if (match.getType() === 'phone' && disablePhoneHyperlink) return false;
  const tag = match.buildTag();
  tag.addClass('message-with-linked-url');
  return tag;
};
@rohit-131
Copy link
Author

Hey @gregjacobs, can you please look into this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant