Duplicate Modal

Hello everyone,

Back again with some feedback regarding modals, my favorite :slight_smile: There have been times where I wanted to copy & paste (i.e. duplicate) Modals, including their components.

However, it seems like this is not possible. - I could be wrong here, but it's not available in the context menu - and using the keys to copy and paste doesn't work either.

If you're assuming people never touch their modals again, you'd be mistaken. I've had a number of occassions where I wanted to move modals from an app to a module and vice versa.

Thanks for your response.
:pray:

2 Likes

@emozio,
Thanks for your feedback. You are correct, there is currently no way to directly copy a modal. This is on our list of things to do! (along with copying a drawer component)

Workarounds include:

  1. copying each component inside a modal into another modal
  2. creating a module with a modal in it and importing that module for use on your page to re-use the modal.

Again, thanks for your feedback.

3 Likes

Thanks, I figured that was the only way to do so. The module method is actually a good trick.

+1 on this, it would be very useful

+1 from my side. This feature would be very helpful. Duplicating the entire modal frame would save a lot of development time.

In complex or multi-page apps, using a global modal frame and setting data for it across different pages can become difficult to manage. Because of this, the same modal often has to be recreated multiple times.

Having a duplicate feature for modal frames would make the process much easier and more efficient. Thanks for raising this request! @emozio

1 Like