From b023ca60c78cd43db46f8d8a4666eace3976dc53 Mon Sep 17 00:00:00 2001 From: Dmitriy Shekhovtsov Date: Wed, 5 Apr 2017 17:11:40 +0300 Subject: [PATCH] fix(dropdown): fixed auto close input behavior fixes #1840 --- src/dropdown/bs-dropdown.directive.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dropdown/bs-dropdown.directive.ts b/src/dropdown/bs-dropdown.directive.ts index 8ddff67dda..01a9f089db 100644 --- a/src/dropdown/bs-dropdown.directive.ts +++ b/src/dropdown/bs-dropdown.directive.ts @@ -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 { @@ -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)));