We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c0ffc6 commit 3c00270Copy full SHA for 3c00270
src/components/UISref.tsx
@@ -32,7 +32,8 @@ export class UISref extends Component<IProps,any> {
32
33
getOptions = () => {
34
let parent: UIViewAddress = this.context['parentUIViewAddress'];
35
- let defOpts = { relative: parent.context, inherit: true };
+ let parentContext = parent && parent.context || UIRouterReact.instance.stateRegistry.root();
36
+ let defOpts = { relative: parentContext, inherit: true };
37
return extend(defOpts, this.props.options || {});
38
}
39
0 commit comments