Skip to content

Commit

Permalink
fix(input): allow pointer events on placeholder (#3878)
Browse files Browse the repository at this point in the history
Removes the `pointer-events: none` from the input placeholder in order to allow for users to bind events to it. Clicking through isn't necessary anyway, because it automatically redirects focus to the underlying input already.
  • Loading branch information
crisbeto authored and jelbourn committed Apr 17, 2017
1 parent e263fb7 commit 32b7426
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib/input/input-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ $mat-input-underline-disabled-background-image:
top: 0;

font-size: 100%;
pointer-events: none; // We shouldn't catch mouse events (let them through).
z-index: 1;
padding-top: 1em;

Expand Down Expand Up @@ -181,7 +180,6 @@ $mat-input-underline-disabled-background-image:
width: 100%;
padding-top: 1em;
overflow: hidden;
pointer-events: none; // We shouldn't catch mouse events (let them through).
transform: translate3d(0, 0, 0); // Prevents the label from shifting after the animation is done.

// Keeps the element height since the placeholder text is `position: absolute`.
Expand Down

0 comments on commit 32b7426

Please sign in to comment.