Skip to content

Commit

Permalink
fix: edit name generator form
Browse files Browse the repository at this point in the history
onclick was not being fired due to not being used by dragsource
  • Loading branch information
buckhalt committed Jan 24, 2024
1 parent c3a394f commit 01c7e4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/interviewer/behaviours/DragAndDrop/DragSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const dragSource = (WrappedComponent) => {
meta = () => ({}),
scrollDirection = VERTICAL_SCROLL,
preview,
onClick,
...rest
}) => {
const node = useRef();
Expand Down Expand Up @@ -135,6 +136,7 @@ const dragSource = (WrappedComponent) => {
styles={styles()}
className={`draggable ${!allowDrag ? 'draggable--disabled' : ''}`}
ref={node}
onClick={onClick}
>
<WrappedComponent
{...rest}
Expand Down

0 comments on commit 01c7e4a

Please sign in to comment.