6

I am trying to implement nested modal dialogs (modal in modal) in lwc. Have tried a few but the result doesn't seem to be awesome. In react, there seems to be some library for layering. But I don't see similar things in lwc.

Is that possible in lwc?

1
3

SLDS spec allows for nested modals (modal in modal) when using overlayLibrary. Unfortunately, there is currently no LWC equivalent for overlayLibrary just yet.

However, the official recipe repo has submitted this stopgap while we wait for an equivalent:

https://github.com/trailheadapps/lwc-recipes/issues/57

You can inspect the pull request, but even with this, I am not sure if double modal will work even in this recipe.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.