Hi @sameyadav
In edit mode your components actual DOM is loaded inside iframe and the component editable div loaded top of that and that's the reason the link aren't clickable in the edit mode. I don't suggest you to do any such kind of customization because it's going to impact the other functionalities of AEM. AEM edit mode is to author and edit the content, ideally you should not click on any link to navigate to any other page.
Hope this helps.