dnd-kit icon indicating copy to clipboard operation
dnd-kit copied to clipboard

Possible solution to the disappearance of the Tree example in the storybook

Open hsmr29 opened this issue 5 years ago • 1 comments

Hi, checking inside the storybook examples to see the Tree example, I realized that it was gone. Checking a bit in /stories/3 - Examples/Tree/SortableTree.tsx I saw that the strategy passed inside the measuring object was still LayoutMeasuringStrategy.Always and changing it to MeasuringStrategy.Always somehow makes the storybook compile correctly the Tree example and yes show it within the list of examples. Of course, you have to import MeasuringStrategy from @dnd-kit/core and you could remove LayoutMeasuringStrategy and Measuring that are no longer used.

I hope it will be helpful, and the adjustment can be made soon to have that component available again within the storybook examples. I take this opportunity to give thanks for the excellent work done in this library.

hsmr29 avatar Jul 27 '21 17:07 hsmr29

Fixed by https://github.com/clauderic/dnd-kit/commit/ad4a26f1ba9b01ea8f6050bcfc21c12125063dc3

clauderic avatar Jul 27 '21 18:07 clauderic