You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/api-docs/click-away-listener.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ For instance, if you need to hide a menu when people click anywhere else on your
26
26
| Name | Type | Default | Description |
27
27
|:-----|:-----|:--------|:------------|
28
28
| <spanclass="prop-name required">children *</span> | <spanclass="prop-type">element</span> || The wrapped element.<br>⚠️ [Needs to be able to hold a ref](/guides/composition/#caveat-with-refs). |
29
+
| <spanclass="prop-name">disableReactTree</span> | <spanclass="prop-type">bool</span> | <spanclass="prop-default">false</span> | If `true`, the React tree is ignored and only the DOM tree is considered. This prop changes how portaled elements are handled. |
29
30
| <spanclass="prop-name">mouseEvent</span> | <spanclass="prop-type">'onClick'<br>| 'onMouseDown'<br>| 'onMouseUp'<br>| false</span> | <spanclass="prop-default">'onClick'</span> | The mouse event to listen to. You can disable the listener by providing `false`. |
30
31
| <spanclass="prop-name required">onClickAway *</span> | <spanclass="prop-type">func</span> || Callback fired when a "click away" event is detected. |
31
32
| <spanclass="prop-name">touchEvent</span> | <spanclass="prop-type">'onTouchStart'<br>| 'onTouchEnd'<br>| false</span> | <spanclass="prop-default">'onTouchEnd'</span> | The touch event to listen to. You can disable the listener by providing `false`. |
0 commit comments