Hustle Custom Content Modal disappears on form steps

Using Gravity Forms to create a multistep form and display it in a Custom Content modal. When the next button is clicked, the modal disappears. Also, the following JS errors are in the console: