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

Accordion activeIndex doesn't work initially #4610

Closed
DanielChicot opened this issue Dec 5, 2017 · 2 comments
Closed

Accordion activeIndex doesn't work initially #4610

DanielChicot opened this issue Dec 5, 2017 · 2 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@DanielChicot
Copy link

There is no guarantee in receiving a response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeNG PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)

https://plnkr.co/edit/9evYJTUINseQ3syIlNQY

Current behavior
After upgrading to primeng 5 using an array of integers for activeIndex couple d with multiple = true doesn't seem to work. No tabs are open.

Expected behavior
The tabs specified in the activeIndex property should be open

Minimal reproduction of the problem with instructions

Please see example at:
https://plnkr.co/edit/9evYJTUINseQ3syIlNQY

What is the motivation / use case for changing the behavior?

So that is works as described in the documentation.

Please tell us about your environment:

Linux, emacs, yarn, node.

  • Angular version: 2.0.X
    5.0.0

  • PrimeNG version: 2.0.X
    5.0.1

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Chrome. Firefox

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    Typescript 2.4.2

  • Node (for AoT issues): node --version =
    9.2.0

@nartc
Copy link

nartc commented Dec 6, 2017

For some reason, openTabs(): number[] { return this._openTabs.map(tab => tab); } works. It might actually require you to make change to the activeIndex array to trigger the tabs.

@DanielChicot
Copy link
Author

Great, so it does, thanks so much,

@cagataycivici cagataycivici added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working Status: Pending Review Issue or pull request is being reviewed by Core Team labels Dec 19, 2017
@cagataycivici cagataycivici added this to the 5.1.0-M1 milestone Dec 19, 2017
@cagataycivici cagataycivici changed the title Primeng 5 p-accordion activeIndex = array + multiple = true not working p-accordion activeIndex = array + multiple = true not working Dec 24, 2017
@cagataycivici cagataycivici changed the title p-accordion activeIndex = array + multiple = true not working Accordion activeIndex doesn't work initially Dec 24, 2017
@cagataycivici cagataycivici self-assigned this Dec 24, 2017
@cagataycivici cagataycivici added confirmed and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Dec 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants