[Bug]: extension-link: multiple tabs are opened when click anchor link in readonly editor #4143
Open
1 of 2 tasks
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Triage: Open
A new issue or pullrequest that requires triage (added by default)
Type: Bug
The issue or pullrequest is related to a bug
Which packages did you experience the bug in?
extension-link
What Tiptap version are you using?
2.0.0-beta.220
What’s the bug you are facing?
Multiple tabs are opened when click anchor link in readonly editor (editor.editable is set to
false
).The behavior differs depending on the browser and OS, but when using Firefox and MacOS, it looks like this video.
2023-06-21.19.47.17.mov
What browser are you using?
Firefox
Code example
https://codesandbox.io/s/zealous-taussig-px4w3y
What did you expect to happen?
Only one tab is opened when click anchor link.
Anything to add? (optional)
I think it would to return false if view.editable is false at here, but I'm not familiar with the internal implementation of tiptap, so I'm not sure.
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: