Components: Date picker <md-datepicker-toggle> : Disabling input disables datepicker icon also

Created on 6 Sep 2017  路  4Comments  路  Source: angular/components

Bug, feature request, or proposal:

After using element from Angular Material2 beta 10.
If I want to disable input field, so that user cannot enter date manually and I have given the disabled property to the input field and it is disabling the date picker icon also where user is not able to select the date using date picker icon.





Most helpful comment

The demo shows this working. Try it like this:

https://github.com/angular/material2/blob/1b6b27055168d6b93ad614054f3797eb845fad55/src/demo-app/datepicker/datepicker-demo.html#L91-L101

You can see a live example at the bottom of this page.

All 4 comments

After using md-datepicker-toggle element from Angular Material2 beta 10.
If I want to disable input field, so that user cannot enter date manually and I have given the disabled property to the input field and it is disabling the date picker icon also where user is not able to select the date using date picker icon.

The demo shows this working. Try it like this:

https://github.com/angular/material2/blob/1b6b27055168d6b93ad614054f3797eb845fad55/src/demo-app/datepicker/datepicker-demo.html#L91-L101

You can see a live example at the bottom of this page.

Putting [disabled]="false" in md-datepicker element is working...
Thank you my friend..

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kara picture kara  路  3Comments

alanpurple picture alanpurple  路  3Comments

savaryt picture savaryt  路  3Comments

RoxKilly picture RoxKilly  路  3Comments

vitaly-t picture vitaly-t  路  3Comments