Hi,

During development it might happen because of HMR. Best would be before updating source files to close the Modal. This way HMR will correctly do its job.
In production this scenario can’t happen, so no bugs for final product.

Cheers,
Razvan