Vuetify: buttons inside v-card-action unclickable

Created on 29 Sep 2017  路  5Comments  路  Source: vuetifyjs/vuetify

Steps to reproduce

In a v-toolbar, create a v-menu with v-card and v-card-action containing one or two buttons. Apply CSS class to v-card with the style:
position: fixed !important;
v-card is now fixed at a position when menu clicked, However, buttons inside v-card-action can no longer be clicked. This seem to happen in Microsoft Edge and IE 11. Chrome and Firefox works ok.

Versions

v0.15.7, Microsoft Edge and IE 11.

What is expected ?

Ideally buttons clickable and functional after the absolute position style is applied.

What is actually happening ?

Buttons cannot be clicked.

Reproduction Link

https://codepen.io/anon/pen/NagbBq

help wanted

All 5 comments

Use content-class on the menu instead of giving the card a class directly. This is caused by a quirk in IE where a positioned element must overlap all its parents for clicks to register.

The blue rectangle below is the menu__content wrapper created by vuetify.

image

https://codepen.io/anon/pen/dVRNqy

Thanks KaelWD, this works great!

Although for IE 11, I have an extra long menu even after setting left to: left: initial !important

untitled

TIL that IE doesn't support initial http://caniuse.com/#feat=css-initial-value

Does auto work instead?

auto works, thanks!

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Webifi picture Webifi  路  3Comments

alterhu2020 picture alterhu2020  路  3Comments

aaronjpitts picture aaronjpitts  路  3Comments

gluons picture gluons  路  3Comments

cawa-93 picture cawa-93  路  3Comments