Framework7: Wrong range selected in the datepicker

Created on 2 Mar 2017  路  17Comments  路  Source: framework7io/framework7

This is a (multiple allowed):

  • [x] bug
  • Framework7 Version: 1.5.3
  • Platform and Target: Material theme & iOS Theme.

What you did

Select a date from range datepicker

Expected Behavior

When you select the range, all days shoud be selected in the calendar.

Actual Behavior

The last day on some cases is not marked, but the date above is correct.

This issue is reproducible in the kitchen sink, both material theme and iOS theme.
The gif shows some examples with the wrong behavior, and the last one is the expected behaviour.

bug range calendar f7

Bug confirmed outdated

Most helpful comment

OMG! Another thing we can blame on daylight savings time.

All 17 comments

Well, for some reason i can not replicate it and it works fine for me. Can anyone confirm there is such issue?
cc @valnub @ZanderBrown

Yes, I can replicate it using Google Chrome on macOS.

The problem only occurs if you select exactly the same date range as in the gif (March 16th-30th).

On other dates it works correctly.

I also see another problem in the date picker. When I click on a day, it will not always select the day (nothing happens). Sometimes I have to click multiple times on a day and then it will select it. I remember that someone posted about a change in Google Chrome that breaks clicking behavior in F7. Don't remember that post tho. This problem does not exist in other browsers, e.g. Firefox. Other users also reported similar issues with components not always reacting when clicked.

I can reproduce it as well but I haven't discovered what the magic combination is. The first few date ranges I select work fine then eventually the date range stops highlighting the last day.

Still works fine for me 馃槥 Guys, what is your environment? I'm checking at:
http://framework7.io/kitchen-sink-material/
macOS 10.12.3
Chrome OSX 56.0.2924.87 (64-bit) (with both emulating mobile device (android) and not)

Was about to post about this issue, Happens for me on windows 7 64bits, chrome 56.0.2924.87 and on firefox 51.0.1. Also I can reproduce it on iPad pro v10.2 & a Samsung Note 5 running android 6.0.1

Try a range from 15 to 31 march 2016 or october 2016.

My environment:

Make sure to follow the steps exactly:

  1. Open kitchen sink (Material)
  2. Select Calendar
  3. Scroll down to select range
  4. Click on 15
  5. Click on 30

This seems to affect march and october only

I think I found the cause: whenever daylight saving dates are in the selected range the issue happens.

馃槀 That would be funky but sounds plausible since Vladi is in Russia. Do you have daylight saving time over there?

Followed @valnub 's steps. Can confirm bug on: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3013.3 Safari/537.36

Might be something in the daylight saving theory, the UK changes from GMT (+0000) to BST (+0100) on the 26th which is, of course, between the 15th and 30th of March

OMG! Another thing we can blame on daylight savings time.

Wow, that is why it works fine for me

Ok, i believe we already fixed it by @Tarekajaj PR

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Samnan picture Samnan  路  3Comments

nimo23 picture nimo23  路  4Comments

J05HI picture J05HI  路  3Comments

vousys picture vousys  路  4Comments

seme1 picture seme1  路  5Comments