MM-29620 Add props to post input to prevent autofill (#4916)

* MM-29620 Add props to post input to prevent autofill

* Set autoCompleteType to off instead of none
This commit is contained in:
Elias Nahum 2020-10-23 19:13:59 -03:00 committed by GitHub
parent 79d2d7b31d
commit cb4d875b13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -291,6 +291,7 @@ exports[`PostDraft Should render the DraftInput 1`] = `
<View>
<TextInput
allowFontScaling={true}
autoCompleteType="off"
blurOnSubmit={false}
disableFullscreenUI={true}
keyboardAppearance="light"
@ -316,6 +317,7 @@ exports[`PostDraft Should render the DraftInput 1`] = `
}
}
testID="post_input"
textContentType="none"
underlineColorAndroid="transparent"
/>
<View

View file

@ -2,6 +2,7 @@
exports[`PostInput should match, full snapshot 1`] = `
<ForwardRef(WrappedPasteableTextInput)
autoCompleteType="off"
blurOnSubmit={false}
disableFullscreenUI={true}
keyboardAppearance="light"
@ -24,6 +25,7 @@ exports[`PostInput should match, full snapshot 1`] = `
"paddingTop": 6,
}
}
textContentType="none"
underlineColorAndroid="transparent"
/>
`;

View file

@ -290,6 +290,8 @@ export default class PostInput extends PureComponent {
keyboardType={this.state.keyboardType}
onEndEditing={this.handleEndEditing}
disableFullscreenUI={true}
textContentType='none'
autoCompleteType='off'
keyboardAppearance={getKeyboardAppearanceFromTheme(theme)}
/>
);