fix: dropdown submenu error #4205

refactor-list
tangjinzhou 3 years ago
parent edca829e09
commit f9e6217bc9

@ -196,7 +196,7 @@ export default defineComponent({
return () => { return () => {
const child = slots?.default(); const child = slots?.default();
if (child) { if (child) {
return cloneElement(child[0], { ref: nodeRef }); return cloneElement(child[0], { ref: nodeRef }, true, true);
} }
return child && child[0]; return child && child[0];
}; };

Loading…
Cancel
Save