Remove dependency resolution override for React 19 types (#39569)
Co-authored-by: ChaosExAnima <ChaosExAnima@users.noreply.github.com>
This commit is contained in:
1 parent
f440615b01
commit
f2e10fd5db
52 files changed
+112
-110
No files matched your search
@@ -328,8 +328,8 @@ export const LanguageDropdown: React.FC = () => {
|
||||
const [open, setOpen] = useState(false);
|
||||
const [placement, setPlacement] = useState<Placement | undefined>('bottom');
|
||||
const [guess, setGuess] = useState('');
|
||||
const activeElementRef = useRef<HTMLElement | null>(null);
|
||||
const targetRef = useRef(null);
|
||||
const activeElementRef = useRef<HTMLElement>(null);
|
||||
const targetRef = useRef<HTMLButtonElement>(null);
|
||||
|
||||
const intl = useIntl();
|
||||
|
||||
@@ -421,7 +421,7 @@ export const LanguageDropdown: React.FC = () => {
|
||||
offset={[5, 5]}
|
||||
placement={placement}
|
||||
flip
|
||||
target={targetRef}
|
||||
target={targetRef as React.RefObject<HTMLButtonElement>}
|
||||
popperConfig={{ strategy: 'fixed', onFirstUpdate: handleOverlayEnter }}
|
||||
>
|
||||
{({ props, placement }) => (
|
||||
|
||||
Reference in new issue
Block a user