Skip to content

Commit 5200326

Browse files
authored
disable enter-to-submit if bio is too long (keybase#15706)
1 parent 5d0b1c2 commit 5200326

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎shared/common-adapters/form-input.native.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type Props = {
1313
containerStyle?: any,
1414
inputStyle?: any,
1515
label?: string,
16-
onEnterKeyDown?: () => void,
16+
onEnterKeyDown?: ?() => void,
1717
value?: string,
1818
textType?: TextType,
1919
secure?: boolean,

‎shared/profile/edit-profile/index.native.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const EditProfileRender = (props: Props) => (
2929
autoCorrect={true}
3030
label="Location"
3131
value={props.location}
32-
onEnterKeyDown={props.onSubmit}
32+
onEnterKeyDown={props.bioLengthLeft >= 0 ? props.onSubmit : null}
3333
onChangeText={location => props.onLocationChange(location)}
3434
/>
3535
{props.bioLengthLeft <= 5 && (

0 commit comments

Comments
 (0)