Skip to content

Commit

Permalink
Forwarding native drag events
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed Nov 23, 2021
1 parent 806c6ec commit 22830c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/render/dom/utils/filter-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export function filterProps(
if (
shouldForward(key) ||
(forwardMotionProps === true && isValidMotionProp(key)) ||
(!isDom && !isValidMotionProp(key))
(!isDom && !isValidMotionProp(key)) ||
(props["draggable"] && key.startsWith("onDrag"))
) {
filteredProps[key] = props[key]
}
Expand Down

0 comments on commit 22830c9

Please sign in to comment.