Skip to content

Commit

Permalink
tmp: don't run onClick callback when link is clicked
Browse files Browse the repository at this point in the history
This is temporary to test the new link bubble feature. A proper
refactoring of the link handling callback functions will follow later.
  • Loading branch information
mejo- committed Jan 15, 2024
1 parent 42256a8 commit 232ae47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const clickHandler = ({ editor, type, onClick }) => {
}

event.stopPropagation()
return
return onClick?.(event, link.attrs)

Check failure on line 31 in src/plugins/link.js

View workflow job for this annotation

GitHub Actions / NPM lint

Unreachable code
},
},
Expand Down

0 comments on commit 232ae47

Please sign in to comment.