Skip to content

Commit af3acd1

Browse files
committed
#1332 - fixed DateTimePicker "showClearDate" button disabled state
1 parent cc18791 commit af3acd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controls/dateTimePicker/DateTimePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ export class DateTimePicker extends React.Component<IDateTimePickerProps, IDateT
368368
}}
369369
/>
370370
</div>
371-
{showClearDate === true && this.state.day !== null && <IconButton iconProps={{ iconName: showClearDateIcon }} onClick={() => this.clearDate()} />}
371+
{showClearDate === true && this.state.day !== null && !disabled && <IconButton iconProps={{ iconName: showClearDateIcon }} onClick={() => this.clearDate()} />}
372372

373373
</div>
374374

0 commit comments

Comments
 (0)