Commit 65aaee63 authored by JeOam's avatar JeOam Committed by baiyaaaaa

fix typo in clickoutside.js (#1848)

parent ead18615
......@@ -23,10 +23,10 @@ export default {
(vnode.context.popperElm &&
vnode.context.popperElm.contains(e.target))) return;
if (binding.expression) {
if (binding.expression &&
el[ctx].methodName &&
vnode.context[el[ctx].methodName] &&
vnode.context[el[ctx].methodName]();
vnode.context[el[ctx].methodName]) {
vnode.context[el[ctx].methodName]();
} else {
el[ctx].bindingFn && el[ctx].bindingFn();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment