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

nested accordeons don't work #27

Open
StefanLeng opened this issue Oct 3, 2019 · 3 comments
Open

nested accordeons don't work #27

StefanLeng opened this issue Oct 3, 2019 · 3 comments

Comments

@StefanLeng
Copy link

If a accordeon from UI.Primitives is nested in another one, the inner accordeon is broken: At a click it opens and immediatly closes again.
The issus seems to be that each accordeon issues a JS call to accordeon(), witch seems to affect all children too. The child accordeon then has the action attached twice.

@krauthaufen
Copy link
Member

hey, thanks for the report, I'll look at it tomorrow...
We have a working implementation in our fable-prototype and i solved these problems there...
Sadly we cannot directly use the code (and it's also private atm.) but we should just "backport" these things...
I'll try to make the code open source as soon as I can, but currently it's interwoven with a commercial project...
however a demo can be found at https://aardvarkians.com/aardvark.web/dev/kitchenSink

@haraldsteinlechner
Copy link
Member

haraldsteinlechner commented Oct 3, 2019 via email

@StefanLeng
Copy link
Author

The demo looks nice...
No hurry, I have a workaround: I created a childAcordeon primitive to use inside a ohter accordeon. A bit ugly because of duplicated code, but it works for the moment.

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

3 participants