Skip to content

Commit 92b96b7

Browse files
authored
fix: minor typo for enterKeyHint prop docs (#8121)
1 parent a166aaa commit 92b96b7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: packages/@react-aria/textfield/src/useTextField.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export interface AriaTextFieldOptions<T extends TextFieldIntrinsicElements> exte
8383
*/
8484
autoCapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters',
8585
/**
86-
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint].
86+
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint).
8787
*/
8888
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'
8989
}

Diff for: packages/@react-types/searchfield/src/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface SearchFieldProps extends TextFieldProps {
2323

2424
export interface AriaSearchFieldProps extends SearchFieldProps, AriaTextFieldProps {
2525
/**
26-
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint].
26+
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint).
2727
*/
2828
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'
2929
}

Diff for: packages/@react-types/textfield/src/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface AriaTextFieldProps<T = HTMLInputElement> extends TextFieldProps
4646
/** Identifies the element (or elements) whose contents or presence are controlled by the current element. */
4747
'aria-controls'?: string,
4848
/**
49-
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint].
49+
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint).
5050
*/
5151
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'
5252
}

0 commit comments

Comments
 (0)