Skip to content

Commit

Permalink
feat(Anchor): deprecate property target_blank_title (#1882)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Jan 11, 2023
1 parent a02e1c5 commit dd9529a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/dnb-eufemia/src/elements/Anchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ export type AnchorProps = {

/** @deprecated use innerRef instead */
inner_ref?: React.RefObject<HTMLAnchorElement>

/** @deprecated use targetBlankTitle instead */
target_blank_title?: string
}

export type AnchorAllProps = AnchorProps &
Expand All @@ -53,11 +50,6 @@ export function AnchorInstance(localProps: AnchorAllProps) {
allProps.innerRef = allProps.inner_ref
delete allProps.inner_ref
}
// deprecated
if (typeof allProps.target_blank_title !== 'undefined') {
allProps.targetBlankTitle = allProps.target_blank_title
delete allProps.target_blank_title
}

if (!allProps.innerRef) {
allProps.innerRef = React.createRef()
Expand Down

0 comments on commit dd9529a

Please sign in to comment.