mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-13 17:05:47 +08:00
fix(popper): trigger ref (#1419)
This commit is contained in:
parent
bf09e894c5
commit
396a89104a
@ -16,5 +16,5 @@ interface IRenderTriggerProps extends Record<string, unknown> {
|
||||
export default function renderTrigger(trigger: VNode[], extraProps: IRenderTriggerProps) {
|
||||
const firstElement = getFirstValidNode(trigger, 1)
|
||||
if (!firstElement) throwError('renderTrigger', 'trigger expects single rooted node')
|
||||
return cloneVNode(firstElement, extraProps)
|
||||
return cloneVNode(firstElement, extraProps, true)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user