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] Javascript up and down methods not working #12607

Open
4 tasks done
aderowbotham opened this issue Dec 20, 2023 · 0 comments
Open
4 tasks done

[Accordion] Javascript up and down methods not working #12607

aderowbotham opened this issue Dec 20, 2023 · 0 comments

Comments

@aderowbotham
Copy link

Expected Behavior

It should be possible to open an Accordion tap using the JavaScript 'down' method described in the documentation

Current Behavior

The 'down' action seems to close the the target element.foundation('down', elementToOpen);
'up' seems to have no effect

Test Case and/or Steps to Reproduce

Test Case: https://codepen.io/aderowbotham/pen/YzgKjjE?editors=1111

Context

I am writing the accordion dynamically with javascript / jQuery then initialising it, this is because the data is read from an API response, and cannot be pre-rendered in the HTML page

This is possible related to #12494 but not sure. However the codepen I have created may prove useful.

Checklist

  • I have read and follow the CONTRIBUTING.md document.
  • This is a bug report or a feature request.
  • There are no other issues similar to this one.
  • The issue title and template are correctly filled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant