Skip to content

Commit

Permalink
change target to href
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein committed Dec 9, 2018
1 parent 7d7edf3 commit b85b4c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/editor/src/components/document-outline/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const DocumentOutline = ( { blocks = [], title, close, isTitleSupported }
level={ __( 'Title' ) }
isValid
close={ close }
target={ `#${ titleNode.id }` }
href={ `#${ titleNode.id }` }
>
{ title }
</DocumentOutlineItem>
Expand All @@ -112,7 +112,7 @@ export const DocumentOutline = ( { blocks = [], title, close, isTitleSupported }
isValid={ isValid }
path={ item.path }
close={ close }
target={ `#block-${ item.clientId }` }
href={ `#block-${ item.clientId }` }
>
{ item.isEmpty ?
emptyHeadingContent :
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/components/document-outline/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const TableOfContentsItem = ( {
isValid,
level,
path = [],
target,
href,
close,
} ) => (
<li
Expand All @@ -26,7 +26,7 @@ const TableOfContentsItem = ( {
) }
>
<a
href={ target }
href={ href }
className="document-outline__button"
onClick={ close }
>
Expand Down

0 comments on commit b85b4c9

Please sign in to comment.