mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
e263fb7807
commit
32b7426741
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user