Skip to content

Commit

Permalink
fix(dropdown): fixed auto close input behavior
Browse files Browse the repository at this point in the history
fixes #1840
  • Loading branch information
valorkin committed Apr 5, 2017
1 parent f4334a8 commit b023ca6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dropdown/bs-dropdown.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ export class BsDropdownDirective implements OnInit, OnDestroy {

this.onShown = this._dropdown.onShown;
this.onHidden = this._dropdown.onHidden;

// set initial dropdown state from config
this._state.autoClose = this._config.autoClose;
}

ngOnInit(): void {
Expand All @@ -127,9 +130,6 @@ export class BsDropdownDirective implements OnInit, OnDestroy {
show: () => this.show()
});

// set initial dropdown state from config
this._state.autoClose = this._config.autoClose;

// toggle visibility on toggle element click
this._subscriptions.push(this._state
.toggleClick.subscribe((value: boolean) => this.toggle(value)));
Expand Down

0 comments on commit b023ca6

Please sign in to comment.