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 82bad02 commit 9a45de1Copy full SHA for 9a45de1
src/components/UISref.tsx
@@ -38,11 +38,13 @@ export class UISref extends Component<IProps,any> {
38
}
39
40
handleClick = (e) => {
41
- e.preventDefault();
42
- let params = this.props.params || {};
43
- let to = this.props.to;
44
- let options = this.getOptions();
45
- UIRouterReact.instance.stateService.go(to, params, options);
+ if (!e.defaultPrevented && !(e.button == 1 || e.metaKey || e.ctrlKey)) {
+ e.preventDefault();
+ let params = this.props.params || {};
+ let to = this.props.to;
+ let options = this.getOptions();
46
+ UIRouterReact.instance.stateService.go(to, params, options);
47
+ }
48
49
50
render () {
0 commit comments