79315919

Date: 2024-12-29 16:20:12
Score: 2
Natty:
Report link

Faced the same issue, it has something to do with setState re-rendering the whole component so the Modal being inside the component gets re-rendered. I moved the whole Modal into a separate file and had all its states in its own component file to fix the issue.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Ashfaq Adib