Skip to content

Commit dd9c58d

Browse files
authored
Revert latest useTextField docs change (#2434)
1 parent b4a3821 commit dd9c58d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-aria/textfield/docs/useTextField.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ input via the `aria-describedby` attribute.
6969
`useTextField` returns props that you should spread onto the appropriate element:
7070

7171
<TypeContext.Provider value={docs.links}>
72-
<InterfaceType properties={docs.links[docs.exports.useTextField.return.base.id].properties} />
72+
<InterfaceType properties={docs.links[docs.exports.useTextField.return.base?.id ?? docs.exports.useTextField.return.id].properties} />
7373
</TypeContext.Provider>
7474

7575
If there is no visual label, an `aria-label` or `aria-labelledby` prop must be passed instead

0 commit comments

Comments
 (0)