Skip to content

Commit

Permalink
fix date picker label
Browse files Browse the repository at this point in the history
  • Loading branch information
thesahindia committed Mar 8, 2022
1 parent 67f26ba commit 088ed2e
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 088ed2e

Please sign in to comment.