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

Visible change removes value in list from state #1120

Open
SamTolmay opened this issue Feb 17, 2022 · 0 comments
Open

Visible change removes value in list from state #1120

SamTolmay opened this issue Feb 17, 2022 · 0 comments
Labels
Bug Something isn't working

Comments

@SamTolmay
Copy link
Member

Describe the bug

If a list is placed inside a box, and the box visiblity is set to false and the true, the list value is removed from state and not restored

To Reproduce

lowdefy: 3.23.2

pages:
  - id: test
    type: Context
    events:
      onInit:
        - id: init_state
          type: SetState
          params:
            visible: true
            object:
              list:
                - value: a
                - value: b
                - value: c
    blocks:
      - id: visible
        type: Switch
      - id: box
        type: Box
        visible:
          _state: visible
        blocks:
          - id: object.list
            type: List
            blocks:
              - id: object.list.$.value
                type: Paragraph
                properties:
                  content:
                    _state: object.list.$.value
@SamTolmay SamTolmay added the Bug Something isn't working label Feb 17, 2022
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

1 participant