Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Get rid of <a/> #8

Merged
merged 2 commits into from
Dec 1, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ class NodeHeader extends React.Component {
const active = this.props.node.active;
const linkStyle = [style.link, active ? style.activeLink : null];
return (
<a
href="javascript:;"
<div
ref="hyperlink"
onClick={this.props.onClick}
style={linkStyle}>
Expand All @@ -25,7 +24,7 @@ class NodeHeader extends React.Component {
node={this.props.node}
style={style.header}
/>
</a>
</div>
);
}
renderToggle(decorators, animations){
Expand Down
1 change: 1 addition & 0 deletions src/themes/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
position: 'relative'
},
link: {
cursor: 'pointer',
position: 'relative',
padding: '0px 5px',
display: 'block'
Expand Down