Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown autoClose value overriden by default on init #1840

Closed
AmlaPeter opened this issue Mar 30, 2017 · 5 comments
Closed

Dropdown autoClose value overriden by default on init #1840

AmlaPeter opened this issue Mar 30, 2017 · 5 comments

Comments

@AmlaPeter
Copy link

AmlaPeter commented Mar 30, 2017

When using:

<div class="btn-group" dropdown [autoClose]="false">

The autoClose property setter is called prior to ngOnInit, meaning the value is then overridden by the default from the config.

ng2-bootstrap 1.6.0

@jiann4321
Copy link

Auto close is not working for me either. I set the autoClose value to false and it is not working

@sturchaninov
Copy link

seems possible to set autoClose in module import:
BsDropdownModule.forRoot({autoClose: false})

@jiann4321
Copy link

But I need this config dynamically based on my dropdown :( Please help!

@tkd-hgoertz
Copy link

@jiann4321 As temporary workaround you can set the autoClose property to false very dirty in the private _state object of BsDropdownContainerComponent which was returned from onShow output of the dropdown directive. I know its ugly.

@Anirudh-Konduri
Copy link

@jiann4321 did you find any workaround for this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants