Merge pull request #334 from jorilallo/hr-fix

Dumb HR bug
This commit is contained in:
Tom Moor
2017-10-20 21:27:15 -07:00
committed by GitHub

View File

@@ -5,7 +5,7 @@ import type { Props } from '../types';
import { color } from 'styles/constants';
function HorizontalRule(props: Props) {
const { state, node } = this.props;
const { state, node } = props;
const active = state.isFocused && state.selection.hasEdgeIn(node);
return <StyledHr active={active} />;
}