Commit db928ded authored by Akiho Nagao's avatar Akiho Nagao Committed by hetech

Popover: fix reference error in the loop (#11503)

* Popover: fix reference error in the loop

* Update directive.js
parent 35931815
......@@ -2,7 +2,11 @@ const getReference = (el, binding, vnode) => {
const _ref = binding.expression ? binding.value : binding.arg;
const popper = vnode.context.$refs[_ref];
if (popper) {
popper.$refs.reference = el;
if (Array.isArray(popper)) {
popper[0].$refs.reference = el;
} else {
popper.$refs.reference = el;
}
}
};
......
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