1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Fix link widget propogation behaviour

Without this fix, using nested link widgets with custom elements causes
clicks on the inner element to trigger links on each of the containing
widgets
This commit is contained in:
Jermolene 2015-08-30 19:12:12 +01:00
parent 68e15c1064
commit 3fbe07f1f8

View File

@ -135,9 +135,9 @@ LinkWidget.prototype.handleClickEvent = function(event) {
});
if(this.domNodes[0].hasAttribute("href")) {
event.preventDefault();
event.stopPropagation();
return false;
}
event.stopPropagation();
return false;
};
LinkWidget.prototype.handleDragStartEvent = function(event) {