diff --git a/api-documentation/draggable/drag-overlay.md b/api-documentation/draggable/drag-overlay.md index 3cebe94..667c9ea 100644 --- a/api-documentation/draggable/drag-overlay.md +++ b/api-documentation/draggable/drag-overlay.md @@ -20,7 +20,7 @@ You may render any valid JSX within the children of the ``. However The `` component should **remain mounted at all times** so that it can perform the drop animation. If you conditionally render the `` component, drop animations will not work. -As a rule of thumb, try to render the `` outside fo your draggable components, and follow the [presentational component pattern ](drag-overlay.md#presentational-components)to maintain a good separation of concerns. +As a rule of thumb, try to render the `` outside of your draggable components, and follow the [presentational component pattern ](drag-overlay.md#presentational-components)to maintain a good separation of concerns. Instead, you should conditionally render the children passed to the ``: @@ -222,6 +222,10 @@ function App() { } ``` +### Click events + +With default settings, a `DragOverlay` will prevent `click` events from firing on your draggable element because the `DragOverlay` is displayed over top of the draggable. To fix this, add a delay or distance-based [activation constraint](../sensors/pointer.md#activation-constraints) or use a drag handle. + ## Props ```typescript