Modal not hiding prior to clicking "Open Modal" button

I’m building the Image Gallery per the tutorial that Ben created for YouTube. Credit to @ben for videos.

Great tutorial but I’m a novice and obviously goofed something up.

For some reason, the “Add Gallery” modal appears at the top of the page as soon as the index.php loads.

Here’s the specific video I’m using: https://youtu.be/doLdrSj2cIs

Here’s what it looks like in my browser, along with a screen shot of the “App View” in Wappler.

I’ve also included a screenshot of what I believe to be the associated code.

Any suggestions?

Thank you!

Edit: added @ben for tutorial video credit

Community Page
Last updated: