Skip to content

Commit b118b50

Browse files
authored
Fix tree shaking of TextField component (#5645)
Was missing a `/*#__PURE__*/` comment on the forwardRef call, causing it to never be tree-shaken.
1 parent 5e49ce7 commit b118b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-aria-components/src/TextField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@ function TextField(props: TextFieldProps, ref: ForwardedRef<HTMLDivElement>) {
100100
/**
101101
* A text field allows a user to enter a plain text value with a keyboard.
102102
*/
103-
const _TextField = (forwardRef as forwardRefType)(TextField);
103+
const _TextField = /*#__PURE__*/ (forwardRef as forwardRefType)(TextField);
104104
export {_TextField as TextField};

0 commit comments

Comments
 (0)