Intercept hyperlinks on click
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 201
- Avg merge
- 12m
- Merged PRs (30d)
- 1
Description
Similar to issue #445 in which the question was to open in a new tab, I'd like to intercept the link click entirely. Our app redirects to a native control for the anchors. Is there any exposed function or way to basically preventDefault and get an event to trigger when a hyperlink is clicked so the listener can propagate it in a different way?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin with issue #445 and trace how hyperlink clicks are handled in the React markdown editor. Determine the intended callback or event behavior for preventing navigation and propagating the click to a native control; done means the interception API and its expected behavior are clearly specified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100