Skip to content

Commit e43c4f5

Browse files
committed
allow the capitalization prop
1 parent 68c655d commit e43c4f5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

source/views/building-hours/report/overview.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ class EditableSchedule extends React.PureComponent {
316316
const TitleCell = ({text, onChange = () => {}}) =>
317317
<CellTextField
318318
hideLabel={true}
319+
autoCapitalize="words"
319320
returnKeyType="done"
320321
placeholder="Title"
321322
value={text}
@@ -327,6 +328,7 @@ const TitleCell = ({text, onChange = () => {}}) =>
327328
const NotesCell = ({text, onChange}) =>
328329
<CellTextField
329330
hideLabel={true}
331+
autoCapitalize="sentences"
330332
returnKeyType="done"
331333
placeholder="Notes"
332334
value={text}

source/views/components/cells/textfield.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export class CellTextField extends React.Component {
4343
placeholder: string,
4444
returnKeyType: 'done' | 'next' | 'default',
4545
secureTextEntry: boolean,
46+
autoCapitalize: string,
4647
value: string,
4748
labelWidth?: number,
4849
}
@@ -78,7 +79,7 @@ export class CellTextField extends React.Component {
7879
cellAccessoryView={
7980
<TextInput
8081
ref={this.cacheRef}
81-
autoCapitalize="none"
82+
autoCapitalize={this.props.autoCapitalize || 'none'}
8283
autoCorrect={false}
8384
clearButtonMode="while-editing"
8485
disabled={this.props.disabled}

0 commit comments

Comments
 (0)