Closed felixchan closed 4 weeks ago
@felixchan Sorry for the late reply.
I investigated the issue. The problem is renderImageComponent
function is called before updating the isOpen
of ref
.
To solve this, I have two options.
renderImageComponent
function again after updating isOpen
.isOpen
in the renderImageComponent
.I think the first option is not good because of the performance. So, I decide to add the parameter to the renderImageComponent
.
I will do it asap.
If you have any opinions or idea, please let me know it.
Thanks.
When I drag the image to close (or push X), the state does not update to false.