Skip to content

Commit

Permalink
filter anchors from DragHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianWielga authored Apr 23, 2024
1 parent b449cee commit cae00a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DragHandle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function getDragHandleClass(isStatic: boolean) {
}

export function DragHandle(props: PropsWithChildren<DragHandleProps>): JSX.Element {
const { children, className, disabled, el = <div />, ignoredChildren = `textarea, input, select, button` } = props;
const { children, className, disabled, el = <div />, ignoredChildren = `a, textarea, input, select, button` } = props;
const onMouseDown = useCallback(
(e: MouseEvent<HTMLElement>) => {
const targets = e.nativeEvent.composedPath();
Expand Down

0 comments on commit cae00a6

Please sign in to comment.