Describe the bug
Just a documentation edit. If you are implementing your own render hooks, you can shoot yourself in the foot by following the minimalistic render hooks example 1 and then changing the defaultInteractionMode prop to ClickArrowToExpand. The example includes all of the other props which are to be spread (i.e., context.itemContainerWithChildrenProps) but not arrowProps. If you were to switch the interaction mode, you will find that the arrow does not expand since there is no handler capturing the click on the arrow or at an ancestor element.
To Reproduce
Provide the renderItemArrow prop as in the example 1.
Provide defaultInteractionMode={InteractionMode.ClickArrowToExpand}
Change the key of the tree environment if you are doing this in the playground otherwise the interaction mode won't take effect.
Expected behavior
I would expect the minimalistic example's renderItemArrow prop to look like the following.
Describe the bug Just a documentation edit. If you are implementing your own render hooks, you can shoot yourself in the foot by following the minimalistic render hooks example 1 and then changing the
defaultInteractionMode
prop toClickArrowToExpand
. The example includes all of the other props which are to be spread (i.e.,context.itemContainerWithChildrenProps
) but notarrowProps
. If you were to switch the interaction mode, you will find that the arrow does not expand since there is no handler capturing the click on the arrow or at an ancestor element.To Reproduce
renderItemArrow
prop as in the example 1.defaultInteractionMode={InteractionMode.ClickArrowToExpand}
Expected behavior I would expect the minimalistic example's
renderItemArrow
prop to look like the following.Desktop (please complete the following information):
Additional context Add any other context about the problem here.