@rsuite/document-nav
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -89,5 +89,6 @@ 'use strict'; | ||
var active = anchor === activeAnchor; | ||
var content = showOrderNumber ? index + ' ' + title : title; | ||
return React.createElement( | ||
'div', | ||
{ className: 'nav-item' }, | ||
{ className: 'nav-item', title: content }, | ||
React.createElement( | ||
@@ -100,3 +101,3 @@ 'a', | ||
}, | ||
showOrderNumber ? index + ' ' + title : title | ||
content | ||
), | ||
@@ -103,0 +104,0 @@ subItems || children ? React.createElement( |
{ | ||
"name": "@rsuite/document-nav", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "Document navigation is automatically generated based on the HTML title (h1-h6) tag", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -53,4 +53,5 @@ // @flow | ||
const active = anchor === activeAnchor; | ||
const content = showOrderNumber ? `${index} ${title}` : title; | ||
return ( | ||
<div className="nav-item"> | ||
<div className="nav-item" title={content}> | ||
<a | ||
@@ -63,3 +64,3 @@ href={`#${anchor}`} | ||
> | ||
{showOrderNumber ? `${index} ${title}` : title} | ||
{content} | ||
</a> | ||
@@ -66,0 +67,0 @@ {subItems || children ? ( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52842
1216