-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Links open twice when the config is editable: false
#4877
Comments
I'm running into this exact case too When editable == false, then links DO open. I'm on 2.1.13 and will double check if an upgrade helps. |
I'm noticing the same issue. Links open once when |
For some reason, Firefox doesn't 'prevent' the click event when editable (clicking on a link inside a Also, we're currently facing this issue in our codebase as well |
it seems that prosemirror-view calls My suggestion is to follow @jaggy 's observation and set Longterm, I think the relates to: #5040 |
Appreciate your feedback here. @benkroeger to be clear, your suggestion means that we should apply your PR to revert |
yes. I've created #5040 for that |
Should be resolved with: #5040 |
It still seems to happen in @2.5.4 😢 |
Which packages did you experience the bug in?
extension-link
What Tiptap version are you using?
2.2.2
What’s the bug you are facing?
The link opens twice when the clicking a link on an editor with
editable: false
as the Editor settings.Tested on:
What browser are you using?
Chrome
Code example
https://github.com/jaggy/tiptap-link-opens-twice-reproduction
What did you expect to happen?
It should only open one new tab.
Anything to add? (optional)
When
openOnClick
is set tofalse
:editable: true
Doesn't open. Which is correct.
editable: false
It opens once.
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: