Actual behavior:
Steps to reproduce the issue: *
- Details:
1. Angular material project with a text field input.
2. Add md-no-float='false' as an attribute to the <md-input-container>
3. Make sure the child <input> element has a placeholder="any value" attribute.
Angular Versions: *
Additional Information:
Proposed Fix
In src/components/input/input.js line 579, replace the 'hasNoFloat' evaluation with the following:
var hasNoFloat = angular.isDefined(inputContainer.element.attr('md-no-float'));
if(hasNoFloat){
//Honor md-no-float='false'
hasNoFloat = (inputContainer.element.attr('md-no-float') != 'false');
};
I have tried this in my fork here - https://github.com/Sodman/material/blob/no-float-false/src/components/input/input.js and I can confirm it's working. I can create a PR if necessary.
@daniel-nagy This should be covered in #7961?
Looks like you're right! That PR accomplishes this perfectly. I must have missed it when I searched, my bad.
@DevVersion I believe it should
Yes but now that PR got closed "as part of our 鈥楽urge Focus on Material 2' efforts"...
That's very frustrating, as we're now left with the choice of running on a fork with this fix or dropping angular material entirely, as we can't use it without this feature.
Is there a process to reopen in the future, or is this now a "won't fix"?
The PR is now reopened.
Most helpful comment
The PR is now reopened.