fix(input): allow pointer events on placeholder (#3878)

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.
This commit is contained in:
Kristiyan Kostadinov
2017-04-17 23:33:20 +02:00
committed by Jeremy Elbourn
parent e263fb7807
commit 32b7426741
-2
View File
@@ -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;
@@ -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`.