rc-calendar
Advanced tools
Comparing version 3.0.1 to 3.1.0
# History | ||
---- | ||
generated by https://github.com/yiminghe/gh-history | ||
## 3.1.0 / 2015-03-23 | ||
`improved` [#17](https://github.com/react-component/calendar/issues/17) support today button to select | ||
## 3.0.0 / 2015-03-13 | ||
@@ -7,0 +10,0 @@ |
@@ -104,5 +104,3 @@ /** @jsx React.DOM */ | ||
today.setTime(Date.now()); | ||
this.setState({ | ||
value: today | ||
}); | ||
this.handleSelect(today); | ||
} | ||
@@ -114,3 +112,3 @@ | ||
function handleSelect(current, event) { | ||
function handleSelect(current, keyDownEvent) { | ||
var props = this.props; | ||
@@ -120,3 +118,3 @@ this.setState({ | ||
}); | ||
if (!event) { | ||
if (!keyDownEvent) { | ||
props.onSelect(current); | ||
@@ -123,0 +121,0 @@ } |
@@ -154,3 +154,3 @@ /** @jsx React.DOM */ | ||
var align = domAlign(React.findDOMNode(this.calendarInstance), this.inputInstance.getDOMNode(), { | ||
var align = domAlign(React.findDOMNode(this.calendarInstance), React.findDOMNode(this.inputInstance), { | ||
points: points, | ||
@@ -157,0 +157,0 @@ offset: offset, |
@@ -49,3 +49,3 @@ /** @jsx React.DOM */ | ||
time[method](number); | ||
this.props.onChange(time, 1); | ||
this.props.onChange(time, e); | ||
} | ||
@@ -52,0 +52,0 @@ }; |
{ | ||
"name": "rc-calendar", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "calendar ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
127281
3071