[FIX] Announcement field triggers password suggestion (#4305)

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
This commit is contained in:
Reinaldo Neto 2022-06-23 17:10:48 -03:00 committed by GitHub
parent 303d127949
commit 8563453735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import { Q } from '@nozbe/watermelondb';
import { BlockContext } from '@rocket.chat/ui-kit'; import { BlockContext } from '@rocket.chat/ui-kit';
import { dequal } from 'dequal'; import { dequal } from 'dequal';
import isEmpty from 'lodash/isEmpty'; import isEmpty from 'lodash/isEmpty';
import { Alert, Keyboard, ScrollView, Text, TextInput, TouchableOpacity, View } from 'react-native'; import { Alert, Keyboard, ScrollView, Text, TextInput, TouchableOpacity, View, StyleSheet } from 'react-native';
import ImagePicker, { Image } from 'react-native-image-crop-picker'; import ImagePicker, { Image } from 'react-native-image-crop-picker';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
@ -630,6 +630,14 @@ class RoomInfoEditView extends React.Component<IRoomInfoEditViewProps, IRoomInfo
theme={theme} theme={theme}
testID='room-info-edit-view-announcement' testID='room-info-edit-view-announcement'
/> />
{/* This TextInput avoid appears the password fill when typing into Announcements TextInput */}
<View style={{ height: StyleSheet.hairlineWidth, overflow: 'hidden' }}>
<TextInput
style={{
height: StyleSheet.hairlineWidth
}}
/>
</View>
<FormTextInput <FormTextInput
inputRef={e => { inputRef={e => {
this.joinCode = e; this.joinCode = e;