Open rileymacisaac opened 2 years ago
I should mention that this also happens on the Input date documentation
This also happens with regular input. For me loadDefaultFeedbackMessages does nothing Also reproducible in docs simulation for Required validator https://lion-web.netlify.app/simulator/#?story-file=9774c992&story-key=requiredValidator&theme=light&platform=web&language=en-US&edge-distance=true
Expected behavior
I expect
lion-input-date
to provide the default validation for that field (IsDate), and provide the default error message like other fields.Actual Behavior
When including
lion-input-date
, it asks me to configure a message viastatic async getMessage()
. If I addnew IsDate()
as a validator tolion-input
, it works perfectly. Butlion-input-date
by it self does not show the validation message.I'm using lion in html/njk, not via JS, so I can reliably do conditional output with data from my CMS.
My code:
Edit/update
If I copy/paste the contents of
LionInputDate.js
into my file and define the custom element there, everything works as intended. Obviously this isn't ideal though.