Skip to content

IxDateInput does not respect invalidText property #2183

@kghandour

Description

@kghandour

Prerequisites

  • I have read the Contributing Guidelines.
  • I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.

What happened?

When I am using the ix-date-input, I expect the invalidText field to be respected if I want to have a custom error message. Currently any invalid date is showing "Date is invalid" as error message. Setting the minDate property, and selecting a date before that shows "Date is invalid".

The problem is the indiscrepancy between the property of invalidText and the actual error message that is showing.

I would expect if an invalidText property is set, it should show the custom error message. If it is not set, then we can show the default.

What type of frontend framework are you seeing the problem on?

Angular (Standalone)

On which version of the frontend framework are you experiencing the issue?

@angular/[email protected]

Which version of iX do you use?

v3.2.0

Code to produce this issue.

https://stackblitz.com/edit/angular-jnihegi5?file=src%2Fmain.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    BacklogIts part of the team backlog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions