Skip to content

<ejs-textbox> incorrect [cssClass] handling #4

@mszewcz

Description

@mszewcz

Example code:

<ejs-textbox
        [formControlName]="'someControlName'"
        [floatLabelType]="'Always'"
        [placeholder]="'Placeholder text'"
        [type]="'text'"
        [cssClass]="hasError(formGroup.someFieldName) ? 'e-error' : ''"
></ejs-textbox>

Expected behaviour:
Add e-error class when hasError() returns true, remove it when hasError() returns false

Actual behaviour:
e-error is added to/removed from
e-error is added to/NOT removed from <div class=".e-control-wrapper"> which holds &

Metadata

Metadata

Assignees

No one assigned

    Labels

    textboxTextBox component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions