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:

1 Like

@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.

1 Like

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