After creating 2 Modals, I encountered an issue where the second modal with the class "category-modal" reverts back to display none when I click the "+" sign on the form. The first modal, with the class "modal," displays correctly when the add button is clicked.
To provide more context, I have included a runnable code snippet below:
// JavaScript code snippet will go here
// CSS code snippet will go here
// HTML code snippet will go here
To better illustrate the issue, I have attached a screenshot showing which buttons to press: https://i.sstatic.net/Dd92r.png