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 9686c21 commit b07d46bCopy full SHA for b07d46b
src/directives/uiSref.ts
@@ -170,7 +170,7 @@ export class UISref implements OnChanges {
170
/** When triggered by a (click) event, this function transitions to the UISref's target state */
171
@HostListener('click', ['$event.button', '$event.ctrlKey', '$event.metaKey'])
172
go(button: number, ctrlKey: boolean, metaKey: boolean) {
173
- if (this._anchorUISref && (this._anchorUISref.openInNewTab() || button != 0 || ctrlKey || metaKey)) {
+ if (this._anchorUISref && (this._anchorUISref.openInNewTab() || button || ctrlKey || metaKey)) {
174
return;
175
}
176
0 commit comments