Skip to content

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

Closed
@rohit-131

Description

@rohit-131

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;
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions