Skip to content

Commit

Permalink
[TimePicker] FIx: muiTheme missing in state
Browse files Browse the repository at this point in the history
  • Loading branch information
emohedano committed Nov 11, 2015
1 parent c03f3f9 commit 904b92e
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 904b92e

Please sign in to comment.