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

Cannot set all panels collapsed on Collapse block. #886

Open
SamTolmay opened this issue Oct 5, 2021 · 0 comments
Open

Cannot set all panels collapsed on Collapse block. #886

SamTolmay opened this issue Oct 5, 2021 · 0 comments
Labels
Bug Something isn't working

Comments

@SamTolmay
Copy link
Member

Describe the bug

We set:

defaultActiveKey={properties.defaultActiveKey || panels[0].key}

Maybe we should set another property, or collapse all by default?

This means you cannot set all panels as collapsed. As a hack, you could do:

id: col
type: Collapse
properties:
  defaultActiveKey: hack_to_collapse_all_panels
  accordion: true
  panels:
    - key: panel_1
      title: Panel 1
    - key: panel_2
      title: Panel 2
areas:
  panel_1:
    blocks:
      - id: b1
        type: Button
  panel_2:
    blocks:
      - id: b2
        type: Button

Lowdefy Version

v3.22.0

@SamTolmay SamTolmay added Bug Something isn't working v4 labels Oct 5, 2021
@Gervwyk Gervwyk assigned ghost Oct 11, 2021
@Gervwyk Gervwyk added the S3 3 Sprint Points label Oct 11, 2021
@Gervwyk Gervwyk unassigned ghost Oct 11, 2021
@SamTolmay SamTolmay removed the v4 label Nov 5, 2021
@Gervwyk Gervwyk removed the S3 3 Sprint Points label Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants