Resolve TypeScript type error for react-draggable nodeRef

Fixkamo-internal
Shipped
November 19, 2025 at 2:30 AM UTC
Author
snadjafinia
Commit
01289f4

- Updated nodeRefs Map type to accept RefObject<HTMLDivElement | null> - Added type assertion when passing nodeRef to Draggable component - Fixes build error: Type 'RefObject<HTMLDivElement | null>' is not assignable to 'RefObject<HTMLDivElement>'

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing