angulardart / angular_components

The official Material Design components for AngularDart. Used at Google in production apps.

Home Page:https://pub.dev/packages/angular_components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

labels of disabled and non-disabled material-input multiline component behave in the same way

opened this issue · comments

Both disabled and non-disabled components behave in the same way and it is hard to distinguish between the both.

When a component is disabled it should not check and display requiredErrorMsg until the component is enabled again.

Also floating label should not change it's default position since disabled component is not accepting any input.

labels

Component code:

    <div style="padding: 10px;">
            <material-input [disabled]="true"
                            floatingLabel
                            multiline
                            rows="4"
                            required
                            requiredErrorMsg="Message is empty!"
                            label="Enter a message to send">
            </material-input>

            <material-input [disabled]="false"
                            floatingLabel
                            multiline
                            rows="4"
                            required
                            requiredErrorMsg="Message is empty!"
                            label="Enter a message to send">
            </material-input>
        </div>

angular_components: version: "0.13.0"