Hi There! I'm running in to some issues with a modal component. Wondering if anyone has any suggestions. Please see video below Also.... here is a read only link of the page
Hey Quinn B. 馃憢 - appreciate the video for context - super helpful! So you have two options in this situation:
You can move the modal component to be at the very top of your HTML stack. Downside is you'll need to make sure that the button is targeting that modal directly - right now its likely targeting because its a "sibling" of the button.
You can use Finsweet Smart Lightbox - which will automatically move this modal component to the top of the HTML stack and/or change the z-index of it dynamically. Upside: No additional changes need to be made to the modal or button interactions. This attribute also has some added features not otherwise possible without. Downside: additional custom code.
Let me know if you have any additional questions!
Matt J. So I got the modal to display properly using the Finsweet option. But a new problem has risen On the published site,
Click "Open Modal"... modal opens and displays properly
Close Modal... closes just fine
Click "Open Modal" again, the button disappears?
Come to find out, if you scroll to the bottom of the page, you can see it there?
Any idea what going on?
Quinn B. I would look over the smart lightbox attributes again. I think we want the attribute on the modal1_component to be the lightbox attribute and the trigger-open to be on the open modal button. Currently there is no attribute on the open modal button. So I'm thinking the script is likely making that shift for some reason.
and for good measure, better add the trigger-close to the close button as well as the overlay div.
Quinn B. since Webflow released the custom components I've been using the native html dialog. If you still have issues I'm happy to share.
[]