Skip to content

controlCustomClass styles not working for textarea control #113

@genaro-picazo-cssc

Description

@genaro-picazo-cssc

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

I have defined a controlCustomClass set of styles in my provideErrorTailorConfig provider function. The styles are correctly applied to my inputs, but not to my textareas.

Expected behavior

I would expect the same styles to be applied to any HTML control, but it isn't.

Minimal reproduction of the problem with instructions

You can create a basic form that is configured to use errorTailor with an input and a textarea and just required validators for both. Errors are shown for both controllers, but the custom control class is only applied to the input.

What is the motivation / use case for changing the behavior?

I'd like to show errors consistently.

Environment


Angular version: 17.3.3

Browser:
- [X] Chrome (desktop) version 123.0.6312.122
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: v20.11.0
- Platform:  Mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions