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 16, 2024
1 parent 3aae00f commit d1eda86
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 d1eda86

Please sign in to comment.