Skip to content

Commit 1770950

Browse files
authored
Feat/ show the beginning of a long text in textField on Android (#1405)
* show the beginning of long text in textField on Android * set selection only for pickers textFields
1 parent 0efb8bb commit 1770950

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/picker/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import PropTypes from 'prop-types';
66
import React, {Component} from 'react';
77
import memoize from 'memoize-one';
88
import {asBaseComponent, forwardRef} from '../../commons';
9+
import {Constants} from 'helpers';
910
import {LogService} from '../../services';
1011
import View from '../../components/view';
1112
import Modal from '../modal';
@@ -447,6 +448,7 @@ class Picker extends Component {
447448
expandable
448449
renderExpandable={this.renderExpandableModal}
449450
onToggleExpandableModal={this.toggleExpandableModal}
451+
selection={Constants.isAndroid && {start: 0}}
450452
/>
451453
);
452454
}

0 commit comments

Comments
 (0)