ericclemmons / ericclemmons/click-to-component
`Option` + `Click` on link element is overlapped with browser native download behavior.
- Dominant language
- JavaScript
- Stars
- 2.4k
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
`Option` + `Click` on link element is overlapped with browser native download behavior.
**OS**
Macos
**To Reproduce**
Steps to reproduce the behavior:
1. `Option` + `Click` on some link element like ``
2. Will download the link
**Expected behavior**
Not overlapped with download behavior.
**Screenshots**

**Desktop (please complete the following information):**
- OS: Macos
- Browser: [e.g. chrome, safari]
- Version: latest
**Additional context**
This happens because of hotkey conflict, I can think of 2 ways of solutions:
1. Change to another hotkey.
2. Add `event.preventDefault()` but that will deactivate the download behavior and that is not perfect
https://github.com/ericclemmons/click-to-component/blob/535727a05ba0e68f13e74bb32f4b34ce4869586b/packages/click-to-react-component/src/ClickToComponent.js#L86-L102
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.