mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	working note type and note paths widgets
This commit is contained in:
		| @@ -15,12 +15,16 @@ export default class Component { | ||||
|  | ||||
|         const fun = this[name + 'Listener']; | ||||
|  | ||||
|         let propagateToChildren = true; | ||||
|  | ||||
|         if (typeof fun === 'function') { | ||||
|             await fun.call(this, data); | ||||
|             propagateToChildren = await fun.call(this, data) !== false; | ||||
|         } | ||||
|  | ||||
|         for (const child of this.children) { | ||||
|             child.eventReceived(name, data); | ||||
|         if (propagateToChildren) { | ||||
|             for (const child of this.children) { | ||||
|                 child.eventReceived(name, data); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user