Skip to content

Commit

Permalink
Merge pull request #2135 from emohedano/bugfixes
Browse files Browse the repository at this point in the history
[TimePicker] Fixes #2064
  • Loading branch information
oliviertassinari committed Nov 12, 2015
2 parents 9c88c9d + 5c43f3f commit 4d1bfa2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/time-picker/time-picker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const StylePropable = require('../mixins/style-propable');
const WindowListenable = require('../mixins/window-listenable');
const TimePickerDialog = require('./time-picker-dialog');
const TextField = require('../text-field');
const ThemeManager = require('../styles/theme-manager');
const DefaultRawTheme = require('../styles/raw-themes/light-raw-theme');


let emptyTime = new Date();
Expand Down Expand Up @@ -50,6 +52,7 @@ const TimePicker = React.createClass({
return {
time: this.props.defaultTime || emptyTime,
dialogTime: new Date(),
muiTheme: this.context.muiTheme ? this.context.muiTheme : ThemeManager.getMuiTheme(DefaultRawTheme),
};
},

Expand Down

0 comments on commit 4d1bfa2

Please sign in to comment.