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

Selector options not displaying onClick. #1510

Open
raBot19 opened this issue Feb 28, 2023 · 0 comments
Open

Selector options not displaying onClick. #1510

raBot19 opened this issue Feb 28, 2023 · 0 comments
Labels
Bug Something isn't working

Comments

@raBot19
Copy link

raBot19 commented Feb 28, 2023

I have a drawer with id A and selector element in the drawer.

I have two tabs on my page where this drawer A is opened from.

When I open from Tab1 . Drawer opens and selector shows the values on click.

image

However, after this, navigating to tab B and opening the drawer, clicking on the selector doesn't display the options.

image

To Reproduce

tabs.yaml

id: tabs
type: PageSiderMenu

blocks:
  - id: tabs_header
    type: Tabs
    properties:
      tabs:
        - key: Page1
          title: Page 1
          icon: null
          disabled: false
        - key: Page2
          title: Page 2
          disabled: false
          icon: null
    areas:
      Page1:
        blocks:
          - _ref: page1.yaml
      Page2:
        blocks:
          - _ref: page2.yaml

page1.yaml

id: page1
type: PageHCF
blocks:
  - id: button
    type: Button
    properties:
      disabled: false
      icon: UpCircleOutlined
      size: small
      title: Upgrade
      type: link
    events:
      onClick:
        - id: open_drawer_modal
          type: CallMethod
          params:
            blockId: drawer
            method: toggleOpen

  - _ref: drawer.yaml

page2.yaml

id: page2
type: PageHCF
blocks:
  - id: button
    type: Button
    properties:
      disabled: false
      icon: UpCircleOutlined
      size: small
      title: Upgrade
      type: link
    events:
      onClick:
        - id: open_drawer_modal
          type: CallMethod
          params:
            blockId: drawer
            method: toggleOpen

  - _ref: drawer.yaml


drawer.yaml

id: drawer
type: Drawer
events:
  onOpen:
    - id: setvalue
      type: SetState
      params:
        versions:
          - label: "1.0"
            value: 1.0
          - label: "2.0"
            value: 2.0

blocks:
  - id: box
    type: Box
    blocks:
      - id: version
        required: true
        type: Selector
        properties:
          allowClear: false
          label:
            colon: false
            title: Available Version
            properties:
              style:
                ".ant-form-item-label > label":
                  align-items: start !
          options:
            _state: versions
          placeholder: Select
          suffixIcon: CaretDownOutlined
          showSearch: false

Lowdefy Version

3.23.3

@raBot19 raBot19 added the Bug Something isn't working label Feb 28, 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

1 participant