Ensure theme gets passed down to TimePicker child components

old
Conroy Whitney 2016-07-21 11:33:48 -07:00
parent 9c4a48597a
commit a6f7d645e4
1 changed files with 2 additions and 2 deletions

View File

@ -59,13 +59,13 @@ const factory = (TimePickerDialog, Input) => {
};
render () {
const { value, format, inputClassName, onEscKeyDown, onOverlayClick, theme, ...others } = this.props;
const { value, format, inputClassName, onEscKeyDown, onOverlayClick, ...others } = this.props;
const formattedTime = value ? time.formatTime(value, format) : '';
return (
<div data-react-toolbox='time-picker'>
<Input
{...others}
className={classnames(theme.input, {[inputClassName]: inputClassName })}
className={classnames(this.props.theme.input, {[inputClassName]: inputClassName })}
error={this.props.error}
name={this.props.name}
label={this.props.label}