diff --git a/src/dropdown/dropdown.component.ts b/src/dropdown/dropdown.component.ts index 7a4dc62d3a..fda4cf149f 100644 --- a/src/dropdown/dropdown.component.ts +++ b/src/dropdown/dropdown.component.ts @@ -25,7 +25,6 @@ import { import { AbstractDropdownView } from "./abstract-dropdown-view.class"; import { I18n } from "carbon-components-angular/i18n"; -import { ListItem } from "./list-item.interface"; import { DropdownService } from "./dropdown.service"; import { ElementService, getScrollableParents } from "carbon-components-angular/utils"; import { hasScrollableParents } from "carbon-components-angular/utils"; diff --git a/src/dropdown/list/dropdown-list.component.ts b/src/dropdown/list/dropdown-list.component.ts index f178a0151d..07bfa41721 100644 --- a/src/dropdown/list/dropdown-list.component.ts +++ b/src/dropdown/list/dropdown-list.component.ts @@ -9,10 +9,14 @@ import { ViewChild, ElementRef, ViewChildren, - QueryList, - ApplicationRef + QueryList } from "@angular/core"; -import { Observable, isObservable, Subscription, of } from "rxjs"; +import { + Observable, + isObservable, + Subscription, + of +} from "rxjs"; import { first } from "rxjs/operators"; import { I18n } from "carbon-components-angular/i18n"; @@ -224,7 +228,7 @@ export class DropdownList implements AbstractDropdownView, AfterViewInit, OnDest /** * Creates an instance of `DropdownList`. */ - constructor(public elementRef: ElementRef, protected i18n: I18n, protected appRef: ApplicationRef) {} + constructor(public elementRef: ElementRef, protected i18n: I18n) {} /** * Retrieves array of list items and index of the selected item after view has rendered. @@ -564,7 +568,6 @@ export class DropdownList implements AbstractDropdownView, AfterViewInit, OnDest this.index = this.displayItems.indexOf(item); this.highlightedItem = this.getItemId(this.index); this.doEmitSelect(false); - this.appRef.tick(); } }