Merge pull request #3612 from invictusmaneo/bug/3610

Bugfix for #3610
This commit is contained in:
Kyle
2017-08-25 12:13:34 -07:00
committed by GitHub
3 changed files with 10 additions and 10 deletions

View File

@@ -161,12 +161,12 @@ export default class Operation extends PureComponent {
<div className={`opblock-summary opblock-summary-${method}`} onClick={this.toggleShown} > <div className={`opblock-summary opblock-summary-${method}`} onClick={this.toggleShown} >
<span className="opblock-summary-method">{method.toUpperCase()}</span> <span className="opblock-summary-method">{method.toUpperCase()}</span>
<span className={ deprecated ? "opblock-summary-path__deprecated" : "opblock-summary-path" } > <span className={ deprecated ? "opblock-summary-path__deprecated" : "opblock-summary-path" } >
<a <a
className="nostyle" className="nostyle"
onClick={(e) => e.preventDefault()} onClick={isDeepLinkingEnabled ? (e) => e.preventDefault() : null}
href={ isDeepLinkingEnabled ? `#/${isShownKey[1]}/${isShownKey[2]}` : ""} > href={isDeepLinkingEnabled ? `#/${isShownKey[1]}/${isShownKey[2]}` : null}>
<span>{path}</span> <span>{path}</span>
</a> </a>
<JumpToPath path={jumpToKey} /> <JumpToPath path={jumpToKey} />
</span> </span>

View File

@@ -81,8 +81,8 @@ export default class Operations extends React.Component {
id={isShownKey.join("-")}> id={isShownKey.join("-")}>
<a <a
className="nostyle" className="nostyle"
onClick={(e) => e.preventDefault()} onClick={isDeepLinkingEnabled ? (e) => e.preventDefault() : null}
href={ isDeepLinkingEnabled ? `#/${tag}` : ""}> href= {isDeepLinkingEnabled ? `#/${tag}` : null}>
<span>{tag}</span> <span>{tag}</span>
</a> </a>
{ !tagDescription ? null : { !tagDescription ? null :

View File

@@ -726,12 +726,12 @@ section
a.nostyle { a.nostyle {
text-decoration: inherit; text-decoration: inherit;
color: inherit; color: inherit;
cursor: auto; cursor: pointer;
display: inline; display: inline;
&:visited { &:visited {
text-decoration: inherit; text-decoration: inherit;
color: inherit; color: inherit;
cursor: auto; cursor: pointer;
} }
} }