mirror of https://github.com/ElemeFE/element
Tooltip: fix getFirstElement (#21886)
parent
a2b7304685
commit
f0b3f9228c
|
@ -218,6 +218,7 @@ export default {
|
||||||
for (let index = 0; index < slots.length; index++) {
|
for (let index = 0; index < slots.length; index++) {
|
||||||
if (slots[index] && slots[index].tag) {
|
if (slots[index] && slots[index].tag) {
|
||||||
element = slots[index];
|
element = slots[index];
|
||||||
|
break;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return element;
|
return element;
|
||||||
|
|
Loading…
Reference in New Issue