mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-10 11:59:58 +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:
parent
68e15c1064
commit
3fbe07f1f8
@ -135,9 +135,9 @@ LinkWidget.prototype.handleClickEvent = function(event) {
|
|||||||
});
|
});
|
||||||
if(this.domNodes[0].hasAttribute("href")) {
|
if(this.domNodes[0].hasAttribute("href")) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
}
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
LinkWidget.prototype.handleDragStartEvent = function(event) {
|
LinkWidget.prototype.handleDragStartEvent = function(event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user