Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add click event for sub-element? #14

Open
mincovip opened this issue May 21, 2020 · 1 comment
Open

How to add click event for sub-element? #14

mincovip opened this issue May 21, 2020 · 1 comment

Comments

@mincovip
Copy link

Hi there,

Could you tell me how to add a click event for sub-element?

As the below code you see, when I click the 'del' the click event not working.
<h3>List of DIVs</h3> <div class="list parent"> <div><a onclick="alert('balabala');" style="color:red;">del</a>Child 1</div> <div><a onclick="alert('balabala');" style="color:red;">del</a>Child 2</div> <div> Child 3 <div class="list"> <div>Subchild</div> </div> </div> </div>

@gardiner
Copy link
Owner

This is similar to issue #13 - the easiest solution is to specify a handle element which reacts to drag/drop while other elements are not influenced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants