angular_components
angular_components copied to clipboard
Make material-input read-only
I could not find any way to make a material-input field readonly. Am I wrong?
This? <material-input [disabled]="true" label="Disabled">
Disabled vs. readonly
- Values for disabled form elements are not passed to the processor method.
- Some browsers may override or provide default styling for disabled form elements.
- Disabled form elements do not receive focus.
- Disabled form elements are skipped in tabbing navigation.
- Disabled form elements do not allow copying the content
I also would need a readOnly property. using disabled seems to be broken #165. And I can't come up with any other solution except duplicating every single material-input.
Material Inputs were updated to be read only in e876793f8ffbf849bbf2b126d9798306d74570f0. Try them on the a newer release ^0.9.0-alpha+10. Does that cover your use case?