Calendar is missing red border in invalid state

Post Reply
User avatar
bossqone
Posts: 3
Joined: 24 Aug 2017, 09:01

01 Oct 2017, 15:14

Image
Calendar component itself has these classes: ng-dirty ng-invalid ng-touched
I would suggest to fix validation classes like this:

Code: Select all

// actual code:
p-calendar.ng-dirty.ng-invalid > .ui-inputtext

// fixed code
p-calendar.ng-dirty.ng-invalid > .ui-calendar > .ui-inputtext
Maybe one more question, do we need direct child selector?
I mean, it just causes compatibility issues when HTML structure of components has been changed in PrimeNG and wasn't reflected to the theme.

merve7
Posts: 37
Joined: 12 Sep 2017, 10:44

09 Oct 2017, 15:02

Thank you. Yes, we need child selector because if we dont have child selector, need only ui-inputtext but now we need ui-inputtext inside in the ui-calendar.

User avatar
bossqone
Posts: 3
Joined: 24 Aug 2017, 09:01

17 Oct 2017, 13:39

I'm not sure what do you mean. Like, I understand that child selector is currently needed (due to current implementation), but it is needed at all? It's too strict/limiting.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest