Skip to content

Commit f5df9ff

Browse files
authored
Merge pull request #3612 from invictusmaneo/bug/3610
Bugfix for #3610
2 parents b6cd504 + 5da3843 commit f5df9ff

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/core/components/operation.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ export default class Operation extends PureComponent {
161161
<div className={`opblock-summary opblock-summary-${method}`} onClick={this.toggleShown} >
162162
<span className="opblock-summary-method">{method.toUpperCase()}</span>
163163
<span className={ deprecated ? "opblock-summary-path__deprecated" : "opblock-summary-path" } >
164-
<a
165-
className="nostyle"
166-
onClick={(e) => e.preventDefault()}
167-
href={ isDeepLinkingEnabled ? `#/${isShownKey[1]}/${isShownKey[2]}` : ""} >
168-
<span>{path}</span>
169-
</a>
164+
<a
165+
className="nostyle"
166+
onClick={isDeepLinkingEnabled ? (e) => e.preventDefault() : null}
167+
href={isDeepLinkingEnabled ? `#/${isShownKey[1]}/${isShownKey[2]}` : null}>
168+
<span>{path}</span>
169+
</a>
170170
<JumpToPath path={jumpToKey} />
171171
</span>
172172

src/core/components/operations.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ export default class Operations extends React.Component {
8181
id={isShownKey.join("-")}>
8282
<a
8383
className="nostyle"
84-
onClick={(e) => e.preventDefault()}
85-
href={ isDeepLinkingEnabled ? `#/${tag}` : ""}>
84+
onClick={isDeepLinkingEnabled ? (e) => e.preventDefault() : null}
85+
href= {isDeepLinkingEnabled ? `#/${tag}` : null}>
8686
<span>{tag}</span>
8787
</a>
8888
{ !tagDescription ? null :

src/style/_layout.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,12 +726,12 @@ section
726726
a.nostyle {
727727
text-decoration: inherit;
728728
color: inherit;
729-
cursor: auto;
729+
cursor: pointer;
730730
display: inline;
731731

732732
&:visited {
733733
text-decoration: inherit;
734734
color: inherit;
735-
cursor: auto;
735+
cursor: pointer;
736736
}
737737
}

0 commit comments

Comments
 (0)