Skip to content

Commit f12d72a

Browse files
ryo-manbaLFDanLu
andauthored
Update autoCapitalize props comment (#5629)
Co-authored-by: Daniel Lu <dl1644@gmail.com>
1 parent 23bec1d commit f12d72a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/@react-aria/textfield/src/useTextField.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ export interface AriaTextFieldOptions<T extends TextFieldIntrinsicElements> exte
8181
*/
8282
inputElementType?: T,
8383
/**
84-
* A nonstandard attribute used by iOS Safari that controls how textual form elements should be automatically capitalized.
85-
* See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autocapitalize).
84+
* Controls whether inputted text is automatically capitalized and, if so, in what manner.
85+
* See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize).
8686
*/
8787
autoCapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'
8888
}

packages/@react-types/form/src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export interface FormProps extends AriaLabelingProps {
5757
*/
5858
autoComplete?: 'off' | 'on',
5959
/**
60-
* A nonstandard attribute used by iOS Safari that controls how textual form elements should be automatically capitalized.
61-
* See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#autocapitalize).
60+
* Controls whether inputted text is automatically capitalized and, if so, in what manner.
61+
* See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize).
6262
*/
6363
autoCapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters',
6464
/**

0 commit comments

Comments
 (0)