Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

md-subheader don't allows clicks. #554

Closed
SanderElias opened this issue Nov 6, 2014 · 5 comments
Closed

md-subheader don't allows clicks. #554

SanderElias opened this issue Nov 6, 2014 · 5 comments
Milestone

Comments

@SanderElias
Copy link
Contributor

If you put an <a> or an <md-button ng-click='blah()'> inside a mdSubheader, the click events are not reaching the ng-click handlers.

here is a plunk that show's the issue

@ajoslin ajoslin added this to the 0.6 milestone Nov 6, 2014
@ajoslin ajoslin self-assigned this Nov 6, 2014
@ThomasBurleson ThomasBurleson modified the milestones: 0.6.0, 0.7.0-rc1 Dec 8, 2014
@3emad
Copy link

3emad commented Jan 7, 2015

I worked around it by adding this to my css:

.md-subheader .md-subheader-content > *{
    position: relative;
    z-index: 10;
}

@ajoslin
Copy link
Contributor

ajoslin commented Jan 12, 2015

Thanks @3emad, I implemented something similar to your fix.

@3emad
Copy link

3emad commented Jan 14, 2015

@ajoslin I missed my chance to have my name on the contribution list 🐹
next bug, I'll race you to it 😄

@borisirota
Copy link

@ajoslin I still have this issue. this is the plunk.
Setting

#button {
  z-index: 1;
}

in the css fixing it but its not a real solution.

I'm using the version in the master (0.8.0-rc1) but it happens in 0.7.1 as well (as used in the plunk)

@borisirota
Copy link

Well its not exactly the same. it's when a button is wrapped with some other element (div in the plunk)

Thanks :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants