Azure / Commercial-Marketplace-SaaS-Accelerator

A reference example with sample code for developers interested publishing transactable, Software as a-Service offers in the Microsoft commercial marketplace.
MIT License
179 stars 275 forks source link

Move modals outside of form elements #711

Open michaellperry opened 1 month ago

michaellperry commented 1 month ago

The modals in both the admin and landing page subscription lists were not working. The spinner would keep spinning indefinitely after the user pressed the button.

The cause was that the form element that the JavaScript attempted to submit did not exist. The form was nested within another form. As a result, the browser removed it from the DOM.

This change moves the modal container outside of the outer form element so that it's inner form would not be nested.

michaellperry commented 1 month ago

@microsoft-github-policy-service agree company="Jinaga LLC"