Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/ui-time-select/src/TimeSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class TimeSelect extends Component<TimeSelectProps, TimeSelectState> {
? this.state.selectedOptionId
: undefined,
fireChangeOnBlur: undefined,
isInputCleared: this.props.allowClearingSelection && value === ''
isInputCleared: this.props.allowClearingSelection! && value === ''
})
}
this.setState({
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-time-select/src/TimeSelect/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ type TimeSelectOwnProps = {
* Whether to allow for the user to clear the selected option in the input field.
* If `false`, the input field will return the last selected option after the input is cleared and loses focus.
*/
allowClearingSelection: boolean
allowClearingSelection?: boolean
}

const propTypes: PropValidators<PropKeys> = {
Expand Down
Loading