Skip to content

Commit c2af4f6

Browse files
author
dengxinxin
committed
允许 click 事件阻止冒泡
1 parent 191a957 commit c2af4f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Crumb.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ define(
102102
: getPathIndex(children, node);
103103
var event = this.fire('click', { item: this.path[index] });
104104
event.isDefaultPrevented() && e.preventDefault();
105+
event.isPropagationStopped() && e.stopPropagation();
106+
105107
return;
106108
}
107109

0 commit comments

Comments
 (0)