mazipan / vue2-simplert

⚠️ Vue 2 Simple Alert Component (SweetAlert Inspired)

Home Page:https://vue2-simplert.gitbook.io/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cover entire SPA with Simplert modal

maryheng opened this issue · comments

Hi all,

screen shot 2017-08-05 at 6 41 08 pm

Currently, I'm doing a Single Page Application (SPA) project, and am using Simplert. The navigation bar, sidebar and the contents are all different components.

I'm currently invoking the Simplert from the content component. So, is there a way to cover the entire browser page (including the sidebar and navigation bar) with the Simplert modal?

This is not vue2-simplert bugs.
But your code to creating Sidebar and Header that have z-index too high.
If you see here, class .simplert have rule z-index: 999.
So you need to set z-index of your Sidebar and Header below that value.

Hope this explanation can help you @maryheng.