vue-thin-modal
vue-thin-modal copied to clipboard
When opening a modal window in a component that is in the current modal window, an error occurs
When opening a modal window in a component that is in the current modal window, the old modal window is unmounted from the dom, which leads to unmounting the component that caused the new window and the new window does not open.

To recreate the error, create a component that has a button that opens a modal window and place this component in another modal window. Open another modal window, and then click the button that is located in the component that calls the new modal window. As a result, the component in the modal window will be destroyed and the new modal window will not be displayed, and the page scroll will be blocked.
To get around this, I had to duplicate the components and move them out of the modal window. I made it so that when a click is triggered, an event is called on the rendered components.

I suggest making a mode in which one or all modal Windows are always in the dom. By v-show type