Skip to content

Commit

Permalink
Update clickHandler.ts (#3917)
Browse files Browse the repository at this point in the history
Fix left click invalid
  • Loading branch information
HengCC authored and bdbch committed Mar 30, 2023
1 parent f3db8e9 commit 3eb5869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension-link/src/helpers/clickHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function clickHandler(options: ClickHandlerOptions): Plugin {
key: new PluginKey('handleClickLink'),
props: {
handleClick: (view, pos, event) => {
if (event.button !== 1) {
if (event.button !== 0) {
return false
}

Expand Down

0 comments on commit 3eb5869

Please sign in to comment.