Skip to content

Commit 32b7426

Browse files
crisbetojelbourn
authored andcommitted
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.
1 parent e263fb7 commit 32b7426

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/lib/input/input-container.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ $mat-input-underline-disabled-background-image:
132132
top: 0;
133133

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

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

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

0 commit comments

Comments
 (0)