From 01c7e4a4771e8bec513fe516a1b7e9ed69d49a15 Mon Sep 17 00:00:00 2001 From: Caden Buckhalt Date: Wed, 24 Jan 2024 13:57:53 -0800 Subject: [PATCH] fix: edit name generator form onclick was not being fired due to not being used by dragsource --- lib/interviewer/behaviours/DragAndDrop/DragSource.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/interviewer/behaviours/DragAndDrop/DragSource.js b/lib/interviewer/behaviours/DragAndDrop/DragSource.js index 084c4b14..145db5d4 100644 --- a/lib/interviewer/behaviours/DragAndDrop/DragSource.js +++ b/lib/interviewer/behaviours/DragAndDrop/DragSource.js @@ -11,6 +11,7 @@ const dragSource = (WrappedComponent) => { meta = () => ({}), scrollDirection = VERTICAL_SCROLL, preview, + onClick, ...rest }) => { const node = useRef(); @@ -135,6 +136,7 @@ const dragSource = (WrappedComponent) => { styles={styles()} className={`draggable ${!allowDrag ? 'draggable--disabled' : ''}`} ref={node} + onClick={onClick} >