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
When using minDate or maxDate with custom days HTML, these limits are ignored when the day number is wrapped: a day rendered simply with
minDate
maxDate
{{day.number}}
will be properly non-clickable when outside the minDate..maxDate range. But a day rendered with
minDate..maxDate
<span>{{day.number}}</span>
will be selectable.
{{#power-calendar selected=selected onSelect=(action (mut selected) value="date") as |calendar|}} {{calendar.nav}} {{#calendar.days minDate="2100-01-01" as |day|}} {{#with (format-date day.date 'd') as |weekday|}} {{#if (or (eq weekday "6") (eq weekday "0"))}} <span style="color: red;">{{day.number}}</span> {{else}} {{day.number}} {{/if}} {{/with}} {{/calendar.days}} {{/power-calendar}}
No days are selectable
Saturdays and Sundays are selectable.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug description
When using
minDate
ormaxDate
with custom days HTML, these limits are ignored when the day number is wrapped: a day rendered simply withwill be properly non-clickable when outside the
minDate..maxDate
range. But a day rendered withwill be selectable.
How to reproduce
Expected behavior
No days are selectable
Current behavior
Saturdays and Sundays are selectable.
The text was updated successfully, but these errors were encountered: