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 #694

Open
jvaccalluzzo opened this issue Sep 27, 2024 · 0 comments
Open

Accordion #694

jvaccalluzzo opened this issue Sep 27, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@jvaccalluzzo
Copy link
Collaborator

jvaccalluzzo commented Sep 27, 2024

Is your feature request related to a problem? Please describe.
When a user click on the title the accordion details expand.

Describe the solution you'd like
Would be nice to have a hook so that when accordion expands we can trigger another action.

Looks like it should be a simple feature to add. Please add a new optional parameter to the main accordion component called "onClick" which can accept a function. There is already an internal function to handle a click on the title found on lines 76 -86 in Accordion.tsx where we can add this functionality.

Set up:

git checkout release/1.1.0
git pull
git checkout -b 'feature/accordion-title-on-click'
@alexwbbr alexwbbr added this to the 1.1.0 milestone Sep 27, 2024
@alexwbbr alexwbbr added the enhancement New feature or request label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants