-
Notifications
You must be signed in to change notification settings - Fork 47
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
Collapsing Accordion with exclusive inside Accordion with exclusive propagates to the parent #871
Comments
@dev-idkwhoami While I can reproduce what you describe, personally, I wouldn't nest accordions as I feel it creates a complicated UI. In your example, I would have two |
The provided code sample is a VERY simplified version of my actual use case. All that would need to be done is stop the propagation at the <flux:accordion exclusive>
<flux:accordion.item heading="How do i use ____ to pay ?" expanded>
<flux:accordion @lofi-disclosable-change.stop="" exclusive>
<flux:accordion.item heading="Paypal">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam, delectus.</p>
</flux:accordion.item>
<flux:accordion.item heading="Credit Card">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam, delectus.</p>
</flux:accordion.item>
</flux:accordion>
</flux:accordion.item>
{{-- More Questions ... --}}
</flux:accordion> |
@dev-idkwhoami Gotcha. Nice workaround! |
@dev-idkwhoami thanks for reporting! I've submitted a PR with a fix to add |
Flux version
v1.0.32
Livewire version
v3.5.17
What is the problem?
When you place an accordion inside an accordion, both with the
exclusive
attribute, when opening a child's accordion item, the parent is closed.I don't know the details but im assuming the "close event" is not being stopped at the accordion so it propagates up to the parent accordion.
Code snippets
How do you expect it to work?
I would expect the accordions to work separately from each other.
Please confirm (incomplete submissions will not be addressed)
The text was updated successfully, but these errors were encountered: