1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-05-21 04:42:16 +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
+2 -2
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) {