angular_components icon indicating copy to clipboard operation
angular_components copied to clipboard

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

Open ghost opened this issue 6 years ago • 0 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"

ghost avatar May 12 '19 03:05 ghost