GithubHelp home page GithubHelp logo

Nested Accordions Issue about handorgel HOT 4 OPEN

oncode avatar oncode commented on August 19, 2024
Nested Accordions Issue

from handorgel.

Comments (4)

oncode avatar oncode commented on August 19, 2024

After A is opened, A fold should get height: auto. So it shouldn't be an issue when content of A is changing. Do you have a repo or codepen to reproduce?

from handorgel.

soumikpaul16 avatar soumikpaul16 commented on August 19, 2024

After A is opened, A fold should get height: auto. So it shouldn't be an issue when content of A is changing. Do you have a repo or codepen to reproduce?

I can see the element id as "handorgel2-fold2-content" and there is a inline style which is getting added i.e height: {variable height}px;

The variable height is getting changed only if i click on the accordion.
No custom code is been added.

Also Not able to see the height: auto property.

I will add a Codepen ASAP and will get back to you with the exact issue reference.

from handorgel.

fritzmg avatar fritzmg commented on August 19, 2024

@soumikpaul16 do you have a Codepen ready? I made a quick test and could not detect any issues with nested accordions, at least not with Handorgel's default CSS: https://codepen.io/fritzmg/pen/qBvQZbb (without any CSS the behavior is janky, yes).

from handorgel.

fritzmg avatar fritzmg commented on August 19, 2024

One thing that does indeed not work however is the usage of multiSelectable: false when there are nested accordions. A click on the toggler of one of the inner accordions will also close every other accordion, including the other ones: https://codepen.io/fritzmg/pen/QWoJKbp

from handorgel.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.