I used a modal inside a modal. If the first model is opened and then closed it works with no issues. The issue arises when first model is opened, and then the second modal i