Skip to content

Link target attribute missing after updating version #2378

Closed Answered by 12joan
jmsansan asked this question in Q&A
Discussion options

You must be logged in to vote

I'm trying to find which PR caused this change; none of the changes in Plate 19.5.0 seem to be responsible. Can you confirm which version this first started happening in?

The quickest way of solving this in your own app would be to make your own Link component. You can reuse as much or as little of Plate UI's component as you want; just import and extend any one of LinkElement, LinkRoot, useLink or getLinkAttributes.

The best way of solving this in Plate would be to make the default target customizable in the plugin options. If anyone wants to submit a PR for this, I would recommend adding a defaultLinkAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement> plugin option which is consum…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@WillTaylor22
Comment options

@12joan
Comment options

@WillTaylor22
Comment options

Answer selected by zbeyens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #2341 on April 30, 2023 11:47.