react-arborist icon indicating copy to clipboard operation
react-arborist copied to clipboard

Internal ID mapping in case of custom idAccessor

Open aliaksandr-yanchuk opened this issue 2 years ago • 2 comments

Hi and thanks for a great tree component, really awesome!

I've noticed one thing, when in case of custom idAccessor (e.g. uid instead of id), internal logic is still relying on "id" in some places. For example drag and drop reorder/move works through useSimpleTree and there goes direct mapping through id, without check for idAccessor property.

Best regards, Alexander Yanchuk

aliaksandr-yanchuk avatar Jan 12 '23 14:01 aliaksandr-yanchuk