Skip to content

Commit

Permalink
Fix: Incorrect current section highlighting on partial match (#1239)
Browse files Browse the repository at this point in the history
Closes #1237
  • Loading branch information
guyius authored and sapegin committed Dec 31, 2018
1 parent 886b719 commit 14ba635
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import cx from 'classnames';
import Link from 'rsg-components/Link';
import Styled from 'rsg-components/Styled';
import { hasInHash, getHash } from '../../utils/handleHash';
import { getHash } from '../../utils/handleHash';

const styles = ({ color, fontFamily, fontSize, space, mq }) => ({
list: {
Expand Down Expand Up @@ -48,7 +48,7 @@ export function ComponentsListRenderer({ classes, items }) {
return (
<ul className={classes.list}>
{items.map(({ heading, visibleName, href, content, external }) => {
const isItemSelected = hasInHash(windowHash, href);
const isItemSelected = windowHash === href;
return (
<li
className={cx(
Expand Down

0 comments on commit 14ba635

Please sign in to comment.