File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ export class AliasInput extends React.PureComponent<AliasInputProps, {}> {
42
42
error = { ! ! this . props . error }
43
43
disabled = { this . props . disabled }
44
44
textType = { Styles . isMobile ? 'BodySemibold' : 'Body' }
45
- value = { `:${ this . props . alias } :` }
45
+ // android has issues with setSelection that make including colons a bad experience
46
+ // see https://keybase.atlassian.net/browse/TRIAGE-2680
47
+ value = { Styles . isAndroid ? this . props . alias : `:${ this . props . alias } :` }
46
48
containerStyle = { Styles . collapseStyles ( [
47
49
styles . aliasInput ,
48
50
! this . props . small && styles . aliasInputLarge ,
@@ -52,7 +54,8 @@ export class AliasInput extends React.PureComponent<AliasInputProps, {}> {
52
54
this . props . onChangeAlias ( newText . replace ( / [ ^ a - z A - Z 0 - 9 - _ + ] / g, '' ) )
53
55
}
54
56
onEnterKeyDown = { this . props . onEnterKeyDown }
55
- onFocus = { this . onFocus }
57
+ // TODO: remove android exception when https://keybase.atlassian.net/browse/TRIAGE-2680 fixed
58
+ onFocus = { Styles . isAndroid ? undefined : this . onFocus }
56
59
/>
57
60
{ this . props . onRemove && (
58
61
< Kb . ClickableBox onClick = { this . props . onRemove } style = { styles . removeBox } >
You can’t perform that action at this time.
0 commit comments