Remove dependency resolution override for React 19 types (#39569)

Co-authored-by: ChaosExAnima <ChaosExAnima@users.noreply.github.com>
This commit is contained in:
diondiondionandChaosExAnima authored and GitHub committed 2026-06-25 07:54:30 +00:00
1 parent f440615b01
commit f2e10fd5db
52 files changed
+112 -110

No files matched your search

@@ -30,7 +30,7 @@ CheckboxField.displayName = 'CheckboxField';
export const Checkbox = forwardRef<HTMLInputElement, Props>(
({ className, size, indeterminate, ...otherProps }, ref) => {
const inputRef = useRef<HTMLInputElement | null>(null);
const inputRef = useRef<HTMLInputElement>(null);
const handleRef = useCallback(
(element: HTMLInputElement | null) => {
@@ -236,7 +236,7 @@ const ComboboxWithRef = <Item extends ComboboxItem, GroupKey extends string>(
) => {
const intl = useIntl();
const wrapperRef = useRef<HTMLDivElement>(null);
const inputRef = useRef<HTMLInputElement | null>();
const inputRef = useRef<HTMLInputElement>(null);
const popoverRef = useRef<HTMLDivElement>(null);
// This ref tracks whether the menu was just closed following a
@@ -558,7 +558,7 @@ const ComboboxWithRef = <Item extends ComboboxItem, GroupKey extends string>(
onHide={closeMenu}
ref={popoverRef}
target={inputRef as React.RefObject<HTMLInputElement>}
container={wrapperRef}
container={wrapperRef as React.RefObject<HTMLDivElement>}
popperConfig={{
modifiers: [matchWidth],
}}
@@ -26,7 +26,7 @@ export const CopyLinkField = forwardRef<HTMLInputElement, CopyLinkFieldProps>(
ref,
) => {
const intl = useIntl();
const inputRef = useRef<HTMLInputElement | null>();
const inputRef = useRef<HTMLInputElement>(null);
const handleFocus = useCallback(() => {
inputRef.current?.select();
}, []);
@@ -120,7 +120,7 @@ const EmojiFieldWrapper: FC<
children: (
inputProps: InputProps & { onChange: ChangeEventHandler },
) => ReactNode;
inputRef: RefObject<HTMLTextAreaElement | HTMLInputElement>;
inputRef: RefObject<HTMLTextAreaElement | HTMLInputElement | null>;
}
> = ({
value,