Applying Interactions to API Data

Hi everyone,

Is there a way to integrate interactions into elements created by a page’s API call?

I am pulling data from the back-end and displaying it in page elements that I want to be buttons that show/hide a modal. My sample card (not pulling API data) opens/closes the modal, but when I apply the interaction to the class it isn’t working for the data-filled cards. Thank you!


Here is my public share link: LINK

Here is the published page to see it in action: https://www.curiouscardinals.com/our-mentors-api-copy