fix: memory leak of Trigger (#1483)
parent
79438a8543
commit
d6234307d2
|
@ -628,7 +628,7 @@ export default {
|
|||
};
|
||||
}
|
||||
|
||||
const trigger = cloneElement(child, newChildProps);
|
||||
this.trigger = cloneElement(child, newChildProps);
|
||||
|
||||
return (
|
||||
<ContainerRender
|
||||
|
@ -640,7 +640,7 @@ export default {
|
|||
getContainer={this.getContainer}
|
||||
children={({ renderComponent }) => {
|
||||
this.renderComponent = renderComponent;
|
||||
return trigger;
|
||||
return this.trigger;
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue