You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, understandably, this is a shape mismatch because Date != string, but setting the initial value to '' is a valid approach when wanting to avoid rendering a value in your DatePicker and instead opting to show your placeholder text. PrimeNG's p-calendar is a great example of this. If you want to show your placeholder, then your value must be ''.
Are we safe to just ignore the shape mismatch errors in this scenario, albeit it does spam the console endlessly, or is there a graceful way to approach this?
The text was updated successfully, but these errors were encountered:
Me again. You'll be getting sick of my issues.
I'm just wondering about how
Date
should be handled in theDeepPartial
andDeepRequired
.If I, for example, have a model with
And the
DeepRequired
is:Then, understandably, this is a shape mismatch because Date != string, but setting the initial value to
''
is a valid approach when wanting to avoid rendering a value in your DatePicker and instead opting to show your placeholder text. PrimeNG'sp-calendar
is a great example of this. If you want to show your placeholder, then your value must be''
.Are we safe to just ignore the shape mismatch errors in this scenario, albeit it does spam the console endlessly, or is there a graceful way to approach this?
The text was updated successfully, but these errors were encountered: