mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 15:17:09 +00:00
Add map node and refactor defaults
This commit is contained in:
@@ -33,7 +33,10 @@ export class TreeView implements ModelListener {
|
||||
|
||||
registerClick(callback: (el: Element) => void): string {
|
||||
return this.register(el => {
|
||||
el.addEventListener('click', _ => callback(el))
|
||||
el.addEventListener('click', evt => {
|
||||
callback(el)
|
||||
evt.stopPropagation()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user