<a> onClick isn't trigged
See original GitHub issueNo <a>
children of SortableElement
ever triggers onClick
due this:
https://github.com/clauderic/react-sortable-hoc/commit/008d8789acc23230a0ef18ccd270819a79a5250d
Reproduceable example: https://codesandbox.io/s/xoynwoo40o
Issue Analytics
- State:
- Created 6 years ago
- Comments:10
Top Results From Across the Web
JavaScript button onclick not working - Stack Overflow
Ran into this problem myself so I can confirm something's not right. The difference is that I am generating the DOm Element at...
Read more >Js : onclick button not triggering - Joomla Stack Exchange
The problem is that your buttons are using the on-click attribute, which isn't valid. You need to use onclick instead. Replace:
Read more >Onclick not working - JavaScript - SitePoint Forums
whenever I use onclick in javascript (not with onclick attribute in html) it doesn't work. I've never been able to get it to...
Read more >My onClick functionality is broken? Nothing is getting triggered?
When clicked, an unfocusable <div> with an onClick handler will trigger the handler just as well as a <button> or div[tab-index] would.
Read more >Bubbling and capturing - The Modern JavaScript Tutorial
On a parent element (meaning an element which is not the target), listeners in the capturing phase will trigger before those for the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In my case I have added the argument
pressDelay={100}
to the Sortable List props. So I have :In that way you can trigger the click on the
a
AND drag thea
less than 1 s after the click.Add distance={ 2 } to your <SortableList …> then check
https://codesandbox.io/s/n9160x16n4