fix(directive/clickoutside): for unbinding comment node

This commit is contained in:
07akioni 2020-02-26 23:25:48 +08:00
parent fe23dfa726
commit 747febd7b8

View File

@ -64,7 +64,7 @@ const clickoutside = {
},
unbind (el) {
console.debug('[clickoutside]: unbind')
clickoutsideDelegate.unregisterHandler(el[ctx].handler)
el[ctx] && clickoutsideDelegate.unregisterHandler(el[ctx].handler)
}
}