Calendar disabled from parameter is off-by-one
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript
- Domain
- mobile
Research direction
Start with the Calendar date-range documentation demo at https://framework7.io/docs/calendar#date-range and reproduce the behavior using disabled: { from: today, to: weekLater }. Trace the Calendar date-disabling logic from that example; done means the configured start date, today, is disabled as the example indicates.
Written by the indexing model from the issue text.
Description
- Framework7 version: [e.g. 3.0.0] latest (demo page)
- Vue.js version: [e.g. 2.0.0] 3
- Platform and Target: all
- Live Link or JSFiddle: https://framework7.io/docs/calendar#date-range
Describe the bug
Take a look at the demo at:
https://framework7.io/docs/calendar#date-range
The "Disabled Dates" field is backed by code that says:
disabled: {
from: today,
to: weekLater
}
However, in the demo, today is enabled, and only tomorrow begins the disabled dates. So it looks like an off-by-one bug.
- Dominant language
- JavaScript
- Stars
- 18.8k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from framework7io/framework7
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
framework7io/framework7#4365 · 1 comment ·
-
propsHistory Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
framework7io/framework7#4347 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
framework7io/framework7#4222 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
framework7io/framework7#4175 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
framework7io/framework7#3922 · 5 comments ·
All issues in framework7io/framework7
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
avniproject/avni-client#2135 ·
-
automated broken-link
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
agent/security hive/hosted-available-lke648397-260827-5n31 security
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
babalae/bettergi-scripts-list#3674 ·
-
A-Release-Notes C-Editing D-Modest S-Ready-For-Implementation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bevyengine/bevy-website#2595 ·