DatePicker Validation #5109
-
Hi, I have a validation around a DatePicker, & a custom validation method that sets the error text. However, regardless of where the ValidationError is placed, whether or not the text is set by the method or a string in the markup, the error text does not display. Am I missing something? Thanks, Orion |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
sample code
|
Beta Was this translation helpful? Give feedback.
-
You should validate for the Value inside of As David mentioned, |
Beta Was this translation helpful? Give feedback.
-
full test code
|
Beta Was this translation helpful? Give feedback.
-
that worked! Thanks @stsrki ! |
Beta Was this translation helpful? Give feedback.
The problem seems to be with how the date calendar is created. The error message is expected to be under the input element, and in this case, the input is wrapped with a container div, making the CSS selectors that show the error broken.
As a workaround, you can disable this behavior by setting the StaticPicker.
We will need to fix this behavior in one of the next releases.