From cb4d875b134e42bb0827c08710ec3ca183346b8f Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Fri, 23 Oct 2020 19:13:59 -0300 Subject: [PATCH] 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 --- app/components/post_draft/__snapshots__/post_draft.test.js.snap | 2 ++ .../post_draft/post_input/__snapshots__/post_input.test.js.snap | 2 ++ app/components/post_draft/post_input/post_input.js | 2 ++ 3 files changed, 6 insertions(+) diff --git a/app/components/post_draft/__snapshots__/post_draft.test.js.snap b/app/components/post_draft/__snapshots__/post_draft.test.js.snap index 052396cd8..297ad7234 100644 --- a/app/components/post_draft/__snapshots__/post_draft.test.js.snap +++ b/app/components/post_draft/__snapshots__/post_draft.test.js.snap @@ -291,6 +291,7 @@ exports[`PostDraft Should render the DraftInput 1`] = ` `; diff --git a/app/components/post_draft/post_input/post_input.js b/app/components/post_draft/post_input/post_input.js index c0de384ef..ac5079844 100644 --- a/app/components/post_draft/post_input/post_input.js +++ b/app/components/post_draft/post_input/post_input.js @@ -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)} /> );