diff --git a/blocks/teleport.js b/blocks/teleport.js index 280ec8e..1167af1 100644 --- a/blocks/teleport.js +++ b/blocks/teleport.js @@ -16,7 +16,8 @@ export default class Teleport extends Component { styleHover, title, to, ...rest } = this.props const { isActive, navigate, route } = this.context - const active = isActive(to, loose) + const isExplicitlyActive = this.props.isActive; + const active = typeof isExplicitlyActive === 'boolean' && isExplicitlyActive || isActive(to, loose) const href = normaliseUri(`${route.context}${to}`) let inlineStyle = ''