{"action":"created","issue":{"url":"https://api.github.com/repos/bevacqua/dragula/issues/150","labels_url":"https://api.github.com/repos/bevacqua/dragula/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/bevacqua/dragula/issues/150/comments","events_url":"https://api.github.com/repos/bevacqua/dragula/issues/150/events","html_url":"https://github.com/bevacqua/dragula/issues/150","id":99679543,"number":150,"title":"make links dragable and able to attach events","user":{"login":"teseo","id":2123048,"avatar_url":"https://avatars.githubusercontent.com/u/2123048?v=3","gravatar_id":"","url":"https://api.github.com/users/teseo","html_url":"https://github.com/teseo","followers_url":"https://api.github.com/users/teseo/followers","following_url":"https://api.github.com/users/teseo/following{/other_user}","gists_url":"https://api.github.com/users/teseo/gists{/gist_id}","starred_url":"https://api.github.com/users/teseo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teseo/subscriptions","organizations_url":"https://api.github.com/users/teseo/orgs","repos_url":"https://api.github.com/users/teseo/repos","events_url":"https://api.github.com/users/teseo/events{/privacy}","received_events_url":"https://api.github.com/users/teseo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bevacqua/dragula/labels/please-read-the-docs","name":"please-read-the-docs","color":"eb6420"},{"url":"https://api.github.com/repos/bevacqua/dragula/labels/support","name":"support","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-07T16:10:18Z","updated_at":"2015-08-07T16:25:32Z","closed_at":"2015-08-07T16:18:35Z","body":"Hello,\r\n\r\nFirst of all I would like to congratulate you for such a fantastic plugin. Very helpful.\r\n\r\nI was wondering wether is possible or is a nice feature to have, attaching events to a 'A' TagName.\r\n\r\nWe aim to be able to drag elements between containers through a 'A' tagName and we could accomplish it by using the invalid option or use moves and setup 'A' tagName as handler.\r\n\r\nDo you think is possible to be able to attach click, mousedown, mouseup, etc. events so we can control wether the user was willing to drag and drop or wants to have the default navigation behaviour to the A's href.\r\n\r\n¡Muchas gracias!"},"comment":{"url":"https://api.github.com/repos/bevacqua/dragula/issues/comments/128755405","html_url":"https://github.com/bevacqua/dragula/issues/150#issuecomment-128755405","issue_url":"https://api.github.com/repos/bevacqua/dragula/issues/150","id":128755405,"user":{"login":"teseo","id":2123048,"avatar_url":"https://avatars.githubusercontent.com/u/2123048?v=3","gravatar_id":"","url":"https://api.github.com/users/teseo","html_url":"https://github.com/teseo","followers_url":"https://api.github.com/users/teseo/followers","following_url":"https://api.github.com/users/teseo/following{/other_user}","gists_url":"https://api.github.com/users/teseo/gists{/gist_id}","starred_url":"https://api.github.com/users/teseo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teseo/subscriptions","organizations_url":"https://api.github.com/users/teseo/orgs","repos_url":"https://api.github.com/users/teseo/repos","events_url":"https://api.github.com/users/teseo/events{/privacy}","received_events_url":"https://api.github.com/users/teseo/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T16:25:32Z","updated_at":"2015-08-07T16:25:32Z","body":"Hello,\r\n\r\nMany thanks for your quick response. I might not have made myself clear on my previous post. Sorry about that.\r\n\r\nThe option Invalid allows me to be able to drag from 'A' tagNames. We have made that and is working great. \r\n\r\nThe issue is that when you click in a 'A' tagName, with the invalid options below, I am not able to attach any events to the link whether is by class name of by Id. \r\n\r\nI was wondering if it is possible to have this:\r\n```\r\nfunction invalidTarget (el) {\r\n  return el.tagName === 'BUTTON';\r\n}\r\n```\r\nand being able to attach events to container elemtents with a 'A' tagName.\r\n\r\n\r\nAgain many thanks for your plugin.\r\n"}}