Skip to content
New issue

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

Before/after modifiers not working as expected #442

Closed
gpbl opened this issue Jun 30, 2017 · 0 comments
Closed

Before/after modifiers not working as expected #442

gpbl opened this issue Jun 30, 2017 · 0 comments
Milestone

Comments

@gpbl
Copy link
Owner

gpbl commented Jun 30, 2017

See this CodeSandbox.

Basically, inner ranges works:

{
  after: new Date(2017, 5, 20),
  before: new Date(2017, 5, 25),
}

(select 5 days between the 20th and the 25th)

but if we switch to outer ranges it will not:

{
  after: new Date(2017, 5, 25),
  before: new Date(2017, 5, 20),
}

(it should select the days before the 20th and after the 25th)

As workaround:

[
  { after: new Date(2017, 5, 25) },
  { before: new Date(2017, 5, 20) }
]
@gpbl gpbl added the bug label Jun 30, 2017
@gpbl gpbl added this to the v6.0.5 milestone Jun 30, 2017
@gpbl gpbl closed this as completed in e22002f Jul 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant