Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(select): rendering in input group
Browse files Browse the repository at this point in the history
closes #2572
  • Loading branch information
rschmukler committed Apr 30, 2015
1 parent e982547 commit aa9058f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/input/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,17 @@ function mdMaxlengthDirective($animate) {
}

function placeholderDirective($log) {
var blackListElements = ['MD-SELECT'];
return {
restrict: 'A',
require: '^^?mdInputContainer',
priority:200,
priority: 200,
link: postLink
};

function postLink(scope, element, attr, inputContainer) {
if (!inputContainer) return;
if (blackListElements.indexOf(element[0].nodeName) != -1) return;
if (angular.isDefined(inputContainer.element.attr('md-no-float'))) return;

var placeholderText = attr.placeholder;
Expand Down

0 comments on commit aa9058f

Please sign in to comment.