File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -164,16 +164,18 @@ export default class DateTimePicker extends PureComponent {
164
164
{ this . props . clearIcon }
165
165
</ button >
166
166
) }
167
- < button
168
- className = "react-datetime-picker__calendar-button react-datetime-picker__button__icon"
169
- disabled = { disabled }
170
- onClick = { this . toggleCalendar }
171
- onFocus = { this . stopPropagation }
172
- onBlur = { this . resetValue }
173
- type = "button"
174
- >
175
- { this . props . calendarIcon }
176
- </ button >
167
+ { this . props . calendarIcon !== null && (
168
+ < button
169
+ className = "react-datetime-picker__calendar-button react-datetime-picker__button__icon"
170
+ disabled = { disabled }
171
+ onClick = { this . toggleCalendar }
172
+ onFocus = { this . stopPropagation }
173
+ onBlur = { this . resetValue }
174
+ type = "button"
175
+ >
176
+ { this . props . calendarIcon }
177
+ </ button >
178
+ ) }
177
179
</ div >
178
180
) ;
179
181
}
You can’t perform that action at this time.
0 commit comments