Closed
Description
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
Labels
No labels