fix: dropdown submenu error #4205

refactor-list
tangjinzhou 2021-06-18 17:12:57 +08:00
parent edca829e09
commit f9e6217bc9
1 changed files with 1 additions and 1 deletions

View File

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