Wanted: Supports passing in a Ref or HTMLElement as handle

Author: zhmushanCreated Nov 1, 2022Updated Sep 27, 2026
Labelsenhancementneeds-triage

It is easy to increase the mental burden by specifying the handle through the selector. I need to always pay attention that there is no duplicate name in these selectors. In React, Ref is very flexible and convenient. If it can support specifying handle through Ref, it must be very cool.

Source: react-grid-layout/react-draggable