Closed frankxin closed 6 years ago
Do you mean the red box is covering over the orange box, so you cannot click "Menuitem 4" and "Menuitem 5"?
Yes. You got it~ @michitaro
Adding style="position: relative; z-index: 999"
to <hsc-menu-button-menu/>
may solve the problem.
It works. By the way, Your code is pretty GOOD. I learned a lot. Thx.
Thats' good!
@michitaro I found an issue if you add style="position: relative; z-index: 999"
to <hsc-menu-button-menu/>
.
This means you apply z-index
to your trigger element. This means you will change the z-index
of your original trigger dom element. This may cause some problems.
May cause problem like this one
ver. 2.8 accepts property menuZIndex
like this.
Update vue-menu and remove style="position: relative; z-index: 999"
from your codes.
That's great, Thx.
Here is my case. So I need set "z-index" to "Fixed element". And I have no idea how to set it without modifying "vue-menu" source code. Do you have any suggestion?