Fix a bunch of react18 type errors

This commit is contained in:
Aria Minaei 2023-08-03 21:25:45 +02:00
parent 5387fda517
commit 7a5b1c744c
24 changed files with 48 additions and 25 deletions

View file

@ -65,7 +65,7 @@ export const OrbitControls = forwardRef<OrbitControlsImpl, OrbitControlsProps>(
if (onChange) onChange(e)
}
controls.connect(explDomElement)
controls.connect(explDomElement!)
controls.addEventListener('change', callback)
if (onStart) controls.addEventListener('start', onStart)