Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

The datepicker's date-disabled validation error does not conform to angular validation error standards, and requires awkward syntax to react to on the front-end. #3439

@Asvarduil

Description

@Asvarduil

Reproduction Plunker can be found here

Steps to Reproduce:

Open the reproduction plunker given above.

Observe that the testText control has a min-date of 1/2/2000 and max-date attribute of 12/31/2099.

Enter a value outside of the min/max date range (e.g. 1/1/1900 or 1/1/2100)

Observe that both the form-level and control-level validation messages use the syntax, testform.$error['date-disabled'] and testForm.testText.$error['date-disabled']

In the "Form Error Dictionary Blob" section, observe that the JSON blob has date-disabled as the key.

Observed Behavior:

It's necessary to use testform.$error['date-disabled'] or testForm.testText.$error['date-disabled'] to access the error object for a date being outside of the min/max-date range.

Expected Behavior:

I should be able to use the fluent syntax, testForm.$error.dateDisabled or testForm.testText.$error.dateDisabled when interacting with the dateDisabled validation error on the front end.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions