Skip to content

Commit

Permalink
fix: support null PrismicLink target and rel props
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Nov 4, 2021
1 parent 7b6f73f commit 850d9a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PrismicLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ export type PrismicLinkProps<
* The `target` attribute for anchor elements. If the Prismic field is
* configured to open in a new window, this prop defaults to `_blank`.
*/
target?: string;
target?: string | null;

/**
* The `rel` attribute for anchor elements. If the `target` prop is set to
* `"_blank"`, this prop defaults to `"noopener noreferrer"`.
*/
rel?: string;
rel?: string | null;

/**
* Children for the component. *
Expand Down

0 comments on commit 850d9a8

Please sign in to comment.