Skip to content

Commit d66ca55

Browse files
committed
docs: faq changes
1 parent 6856326 commit d66ca55

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/docs/docs/faq.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ Reference: [#217](https://github.com/lukasbach/react-complex-tree/issues/217)
113113
<details><summary>Can I turn off multi-select?</summary>
114114
<div>
115115

116+
There is no direct property that controls this.
117+
116118
You should be able to achieve that by implementing a custom interaction mode. You can read about
117119
those [here](https://rct.lukasbach.com/docs/guides/interaction-modes#custom-interaction-modes), and see
118120
an example implementation [here](https://github.com/lukasbach/react-complex-tree/blob/main/packages/core/src/interactionMode/ClickItemToExpandInteractionManager.ts).
@@ -133,9 +135,6 @@ Reference: [#151](https://github.com/lukasbach/react-complex-tree/issues/151)
133135
Whether arrow is shown or not depends only on `isFolder` (previously `hasChildren`) prop of the node. So you have to
134136
change that property for the node when all children are moved out.
135137

136-
I agree that this is not very intuitive and probably would be better if it was just checking current state of item and
137-
not `isFolder` property. Maybe this could be done with custom `renderItemArrow` renderer.
138-
139138
Reference: [#188](https://github.com/lukasbach/react-complex-tree/issues/188) and [#70](https://github.com/lukasbach/react-complex-tree/pull/70)
140139

141140
</div>

0 commit comments

Comments
 (0)