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

md-input-container: Label still floats when you click it if input has "readonly" attribute #1203

Closed
epelc opened this issue Jan 15, 2015 · 6 comments
Milestone

Comments

@epelc
Copy link
Contributor

epelc commented Jan 15, 2015

Now that we have md-input-container and can access the inner input element we should support the readonly and ng-readonly attributes. Currently if an input is read only the label will still float up and the whole element changes colors like normal however this shouldn't happen.

Also if your input has some text in it and then it becomes read only you can still click on it and it will change color without letting you edit it.

@Splaktar
Copy link
Member

I am seeing this as well.

Here is a plunker than can be used to test this with only a minor change: http://plnkr.co/edit/cV2xejsabJIhM70IC6Zg?p=preview

@rschmukler rschmukler modified the milestone: 0.7.1 Jan 15, 2015
@naomiblack naomiblack modified the milestones: 0.7.1, 0.8.0 Jan 26, 2015
@chriseyhorn
Copy link

This only appears to be fixed with "readonly" and not "ng-readonly".

@baelter
Copy link

baelter commented Dec 11, 2015

The label should float when you set the value programatically. Now the label is behind the value.

@bobwah
Copy link

bobwah commented May 17, 2016

I am still seeing this with ng-readonly

@fguillotpro
Copy link

Yes, the issue is still there using v1.1.1 and ng-readonly. Any plan for a fix?

@Splaktar
Copy link
Member

This issue is closed. Please open a new issue for v1.1.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants