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

DateRangePicker default value not highlighting properly. #429

Closed
neevany opened this issue Jan 9, 2017 · 0 comments
Closed

DateRangePicker default value not highlighting properly. #429

neevany opened this issue Jan 9, 2017 · 0 comments

Comments

@neevany
Copy link

neevany commented Jan 9, 2017

Bug report

  • Package version(s): @blueprintjs/datetime 1.4.1
  • Browser and OS versions: Version 57.0.2962.0 (Official Build) canary (64-bit), Mac Os Sierra 10.12 (16A323)

Steps to reproduce

import React from 'react';

import { DateRangePicker } from "@blueprintjs/datetime";

const TestDateRange = React.createClass({
  getInitialState() {
    return {
      selectedDateRange: [new Date("2016-12-04"),new Date()]
    }
  },
  componentWillMount() {
   
  },
  handleDateChange (value) {
    this.setState({ selectedDateRange: value})
  },
  render() {
    return (
      <div>
        <DateRangePicker
        allowSingleDayRange={true}
        value={this.state.selectedDateRange}
        onChange={this.handleDateChange}/>
      </div>
    );
  }
});

export default TestDateRange;

Actual behavior

daterange picker

Nov 4th is being highlighted.
Am i doing something wrong with initial state?

Expected behavior

Dec 4th should be highlighted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants