From 850d9a8a7dab8024536b77b7b9f482c017dda907 Mon Sep 17 00:00:00 2001 From: Angelo Ashmore Date: Thu, 4 Nov 2021 13:37:06 -1000 Subject: [PATCH] fix: support null PrismicLink target and rel props --- src/PrismicLink.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PrismicLink.tsx b/src/PrismicLink.tsx index bce0de5..369ea6f 100644 --- a/src/PrismicLink.tsx +++ b/src/PrismicLink.tsx @@ -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. *