We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug min/max props for sl-input type="date" get truncated.
To Reproduce Markup:
<sl-input name="name" type="date" placeholder="Event date" min="2018-01-01" max="2018-12-31"></sl-input>
In shadow DOM we get:
<input part="input" id="input-2" class="input__control" type="date" name="" placeholder="Event date" min="2018" max="2018" aria-labelledby="input-label-2" aria-describedby="input-help-text-2" aria-invalid="false">
Notice that min and max attributes have become "2018", which is useless for the date picker.
min
max
Expected behavior It should preserve the min/max props as they are (or process them according to type prop).
type
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
I've adjusted the min and max types to be number | string to account for dates. I'll push the update soon. Thanks for reporting it!
number | string
Sorry, something went wrong.
Great -- thank you.
claviska
No branches or pull requests
Describe the bug
min/max props for sl-input type="date" get truncated.
To Reproduce
Markup:
In shadow DOM we get:
Notice that
min
andmax
attributes have become "2018", which is useless for the date picker.Expected behavior
It should preserve the min/max props as they are (or process them according to
type
prop).Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: