Skip to content

Commit

Permalink
Merge pull request #8041 from thesahindia/thesahindia/ui/date-picker-…
Browse files Browse the repository at this point in the history
…label

fix date picker label
luacmartins authored Mar 8, 2022
2 parents 7fcec4c + 088ed2e commit 9c534aa
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
@@ -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 = {
@@ -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}

0 comments on commit 9c534aa

Please sign in to comment.