Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

uib-accordion: is-open is not linked to the outer scope as expected #4656

@ssc-hrep3

Description

@ssc-hrep3

I used the is-open attribute of the uib-accordion directive. I expected that the variable, I pass in there, will be updated by uib-accordion. That is not the case. Is this the correct behavior?

Story around: I wanted to use the variable of is-open and manipulate it from external. Inside the accordion is a search mask, which should be closed after a successful search. If I change the variable in is-open, after the successful search, the uib-accordion reacts as expected. The problem occurs, if the user clicks on the accordion header. The variable is not updated anymore and can therefore not correctly directed from outside anymore.

I added a plunkr, where you see, that the variable is not updated on a click on the header of the accordion (opening/closing accordion).
http://plnkr.co/edit/YTX7LTdiFlqn5yIn9t1x?p=preview

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions