From 40a0e40225b4bcad30bab05439505e4380af019c Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Sat, 24 Oct 2020 00:22:33 +0200 Subject: [PATCH] MM-29620 Add props to post input to prevent autofill (#4916) (#4921) * MM-29620 Add props to post input to prevent autofill * Set autoCompleteType to off instead of none (cherry picked from commit cb4d875b134e42bb0827c08710ec3ca183346b8f) Co-authored-by: Elias Nahum --- 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)} /> );