From 32b74267418f16f3b239e8c42a1a000b08d878d1 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Mon, 17 Apr 2017 23:33:20 +0200 Subject: [PATCH] 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. --- src/lib/input/input-container.scss | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/input/input-container.scss b/src/lib/input/input-container.scss index b8b472861483..d7556aaa3147 100644 --- a/src/lib/input/input-container.scss +++ b/src/lib/input/input-container.scss @@ -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`.