From 79d3ec1bcd8e23c21ca17ea517e758f4c64fdf08 Mon Sep 17 00:00:00 2001 From: Josh Kruder Date: Fri, 14 Aug 2015 19:17:29 -0400 Subject: [PATCH] Added border radius and fixed disableYearSelection. --- .../components/pages/components/date-picker.jsx | 16 +++++++++++++--- src/date-picker/calendar.jsx | 2 ++ src/date-picker/date-display.jsx | 10 +++++++--- src/date-picker/date-picker-dialog.jsx | 2 +- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/docs/src/app/components/pages/components/date-picker.jsx b/docs/src/app/components/pages/components/date-picker.jsx index 2f7dc0df36a859..cc90160992d44f 100644 --- a/docs/src/app/components/pages/components/date-picker.jsx +++ b/docs/src/app/components/pages/components/date-picker.jsx @@ -148,16 +148,19 @@ class DatePickerPage extends React.Component { componentInfo={componentInfo}> + hintText="Portrait Dialog" + disableYearSelection={this.state.disableYearSelection} /> + mode="landscape" + disableYearSelection={this.state.disableYearSelection} /> + onChange={this._handleChange.bind(this)} + disableYearSelection={this.state.disableYearSelection} /> + + ); diff --git a/src/date-picker/calendar.jsx b/src/date-picker/calendar.jsx index 28844200fc9e65..ef4e33b09b465a 100644 --- a/src/date-picker/calendar.jsx +++ b/src/date-picker/calendar.jsx @@ -33,6 +33,7 @@ let Calendar = React.createClass({ getDefaultProps() { return { + disableYearSelection: false, initialDate: new Date(), minDate: DateTime.addYears(new Date(), -100), maxDate: DateTime.addYears(new Date(), 100), @@ -125,6 +126,7 @@ let Calendar = React.createClass({