Skip to content
Merged
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
3 changes: 2 additions & 1 deletion src/components/DatePicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import TextInput from '../TextInput';
import CONST from '../../CONST';
import {propTypes, defaultProps} from './datepickerPropTypes';
import withWindowDimensions, {windowDimensionsPropTypes} from '../withWindowDimensions';
import canUseTouchScreen from '../../libs/canUseTouchscreen';
import './styles.css';

const datePickerPropTypes = {
Expand Down Expand Up @@ -68,7 +69,7 @@ class Datepicker extends React.Component {
render() {
return (
<TextInput
forceActiveLabel={!this.props.isSmallScreenWidth}
forceActiveLabel={!canUseTouchScreen()}
ref={input => this.inputRef = input}
onFocus={this.showDatepicker}
label={this.props.label}
Expand Down