Skip to content

Commit d228257

Browse files
authored
Merge pull request #23447 from chiragxarora/fix/23303
Disabling spell check on multiple pages
2 parents 586060e + 74c82ea commit d228257

File tree

11 files changed

+19
-5
lines changed

11 files changed

+19
-5
lines changed

src/components/AddressSearch/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ function AddressSearch(props) {
278278
}
279279
},
280280
maxLength: props.maxInputLength,
281+
spellCheck: false,
281282
}}
282283
styles={{
283284
textInputContainer: [styles.flexColumn],

src/components/OptionsSelector/BaseOptionsSelector.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ class BaseOptionsSelector extends Component {
326326
}}
327327
selectTextOnFocus
328328
blurOnSubmit={Boolean(this.state.allOptions.length)}
329+
spellCheck={false}
329330
/>
330331
);
331332
const optionsList = (

src/components/RoomNameInput/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ function RoomNameInput({autoFocus, disabled, errorText, forwardedRef, value, onB
6060
onBlur={onBlur}
6161
autoFocus={autoFocus}
6262
maxLength={CONST.REPORT.MAX_ROOM_NAME_LENGTH}
63+
spellCheck={false}
6364
/>
6465
);
6566
}

src/components/SelectionListRadio/BaseSelectionListRadio.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ function BaseSelectionListRadio(props) {
230230
onChangeText={props.onChangeText}
231231
keyboardType={props.keyboardType}
232232
selectTextOnFocus
233+
spellCheck={false}
233234
/>
234235
</View>
235236
)}

src/pages/settings/Payments/AddDebitCardPage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function DebitCardPage(props) {
120120
accessibilityLabel={translate('addDebitCardPage.nameOnCard')}
121121
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT}
122122
ref={(ref) => (nameOnCardRef.current = ref)}
123+
spellCheck={false}
123124
/>
124125
<TextInput
125126
inputID="cardNumber"

src/pages/settings/Profile/DisplayNamePage.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ function DisplayNamePage(props) {
9393
defaultValue={lodashGet(currentUserDetails, 'firstName', '')}
9494
maxLength={CONST.DISPLAY_NAME.MAX_LENGTH}
9595
autoCapitalize="words"
96+
spellCheck={false}
9697
/>
9798
</View>
9899
<View>
@@ -105,6 +106,7 @@ function DisplayNamePage(props) {
105106
defaultValue={lodashGet(currentUserDetails, 'lastName', '')}
106107
maxLength={CONST.DISPLAY_NAME.MAX_LENGTH}
107108
autoCapitalize="words"
109+
spellCheck={false}
108110
/>
109111
</View>
110112
</Form>

src/pages/settings/Profile/PersonalDetails/AddressPage.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ function AddressPage({privatePersonalDetails}) {
167167
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT}
168168
defaultValue={street2 || ''}
169169
maxLength={CONST.FORM_CHARACTER_LIMIT}
170+
spellCheck={false}
170171
/>
171172
<View style={styles.formSpaceVertical} />
172173
<View style={styles.mhn5}>
@@ -192,6 +193,7 @@ function AddressPage({privatePersonalDetails}) {
192193
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT}
193194
defaultValue={address.state || ''}
194195
maxLength={CONST.FORM_CHARACTER_LIMIT}
196+
spellCheck={false}
195197
/>
196198
)}
197199
<View style={styles.formSpaceVertical} />
@@ -202,6 +204,7 @@ function AddressPage({privatePersonalDetails}) {
202204
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT}
203205
defaultValue={address.city || ''}
204206
maxLength={CONST.FORM_CHARACTER_LIMIT}
207+
spellCheck={false}
205208
/>
206209
<View style={styles.formSpaceVertical} />
207210
<TextInput

src/pages/settings/Profile/PersonalDetails/LegalNamePage.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ function LegalNamePage(props) {
9696
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT}
9797
defaultValue={legalFirstName}
9898
maxLength={CONST.DISPLAY_NAME.MAX_LENGTH}
99+
spellCheck={false}
99100
/>
100101
</View>
101102
<View>
@@ -107,6 +108,7 @@ function LegalNamePage(props) {
107108
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT}
108109
defaultValue={legalLastName}
109110
maxLength={CONST.DISPLAY_NAME.MAX_LENGTH}
111+
spellCheck={false}
110112
/>
111113
</View>
112114
</Form>

src/pages/tasks/NewTaskDetailsPage.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const defaultProps = {
3535
task: {},
3636
};
3737

38-
function NewTaskPage(props) {
38+
function NewTaskDetailsPage(props) {
3939
const inputRef = useRef();
4040
const [taskTitle, setTaskTitle] = useState(props.task.title);
4141
const [taskDescription, setTaskDescription] = useState(props.task.description || '');
@@ -121,9 +121,9 @@ function NewTaskPage(props) {
121121
);
122122
}
123123

124-
NewTaskPage.displayName = 'NewTaskPage';
125-
NewTaskPage.propTypes = propTypes;
126-
NewTaskPage.defaultProps = defaultProps;
124+
NewTaskDetailsPage.displayName = 'NewTaskDetailsPage';
125+
NewTaskDetailsPage.propTypes = propTypes;
126+
NewTaskDetailsPage.defaultProps = defaultProps;
127127

128128
export default compose(
129129
withOnyx({
@@ -135,4 +135,4 @@ export default compose(
135135
},
136136
}),
137137
withLocalize,
138-
)(NewTaskPage);
138+
)(NewTaskDetailsPage);

src/pages/workspace/WorkspaceMembersPage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ function WorkspaceMembersPage(props) {
453453
onChangeText={setSearchValue}
454454
label={props.translate('optionsSelector.findMember')}
455455
accessibilityLabel={props.translate('optionsSelector.findMember')}
456+
spellCheck={false}
456457
/>
457458
</View>
458459
{data.length > 0 ? (

src/pages/workspace/WorkspaceSettingsPage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ function WorkspaceSettingsPage(props) {
135135
containerStyles={[styles.mt4]}
136136
defaultValue={props.policy.name}
137137
maxLength={CONST.WORKSPACE_NAME_CHARACTER_LIMIT}
138+
spellCheck={false}
138139
/>
139140
<View style={[styles.mt4]}>
140141
<Picker

0 commit comments

Comments
 (0)