You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm working on an implementation of the Dropdown and I'm having some trouble with the autoClose property. I set the autoClose to 'outsideClick' but the dropdown is toggled when I click inside the element as well. Here is what I have:
The template of the edit-details component has the following html:
<divid="dropdown-content" *ngIf="details"><formrole="form"><divclass="row"><divclass="col-lg-6"><input-text[(value)]="details.name" (input)="valueChanged('name', $event)"></input-text>
... some more inputs
</div></div></form></div>
After some debugging I found that in the closeDropdown function in dropdown.service.ts, the this.openScope.menuEl is undefined. I think that the public set dropDownMenu in dropdown.directive.ts is never called, thus the this.menuEl is never set.
Any ideas on this are very welcome. Thanks!
The text was updated successfully, but these errors were encountered:
valorkin
changed the title
Dropdown with autoClose 'outsideClick' closing when clicking inside element
chore(dropdown): with autoClose 'outsideClick' closing when clicking inside element
Feb 3, 2016
…ny click
- Implement a `DropdownMenu` directive to fix "always undefined directive.menuEl"
- Test for "OUTSIDECLICK" should not consider menu children to be outside the menu
rluba
added a commit
to rluba/ng2-bootstrap
that referenced
this issue
Feb 10, 2016
- Implement a `DropdownMenu` directive to fix "always undefined directive.menuEl"
- Test for "OUTSIDECLICK" should not consider menu children to be outside the menu
This fixesvalor-software#124
Hi,
i'm working on an implementation of the Dropdown and I'm having some trouble with the autoClose property. I set the autoClose to 'outsideClick' but the dropdown is toggled when I click inside the element as well. Here is what I have:
index.html:
The template of the edit-details component has the following html:
After some debugging I found that in the closeDropdown function in dropdown.service.ts, the this.openScope.menuEl is undefined. I think that the public set dropDownMenu in dropdown.directive.ts is never called, thus the this.menuEl is never set.
Any ideas on this are very welcome. Thanks!
The text was updated successfully, but these errors were encountered: