Skip to content

Commit

Permalink
fix: use correct rxjs imports for focus trap
Browse files Browse the repository at this point in the history
Closes #2439
  • Loading branch information
maxokorokov committed Jun 7, 2018
1 parent 2666d8b commit 2315c8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/util/focus-trap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Component, ElementRef} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';

import {ngbFocusTrap} from './focus-trap';
import {Subject} from 'rxjs/internal/Subject';
import {Subject} from 'rxjs';

describe('ngbFocusTrap', () => {

Expand Down
2 changes: 1 addition & 1 deletion src/util/focus-trap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {fromEvent, Observable} from 'rxjs/index';
import {fromEvent, Observable} from 'rxjs';
import {filter, map, takeUntil, withLatestFrom} from 'rxjs/operators';

enum Key {
Expand Down
5 changes: 5 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"curly": true,
"eofline": true,
"forin": true,
"import-blacklist": [
true,
"rxjs/Rx",
"rxjs/index"
],
"indent": [
true,
"spaces"
Expand Down

0 comments on commit 2315c8c

Please sign in to comment.