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

Dynamic show change does not work #107

Open
3 tasks done
hubertmiernik opened this issue May 25, 2023 · 0 comments
Open
3 tasks done

Dynamic show change does not work #107

hubertmiernik opened this issue May 25, 2023 · 0 comments

Comments

@hubertmiernik
Copy link

Describe the bug

Hi,
I would like to the show props set a dynamic value and based on that render the elements in the carousel.
Unfortunately, only the first value is always remembered, the next value will not load until we resize the window (?).
Example: https://codepen.io/hubu999/pen/gOBERgY

Reproduction

Example: https://codepen.io/hubu999/pen/gOBERgY

Steps to reproduce:

  1. Open codepen, as you can see the initial value is 4.
  2. Click 'Set show to 3'. Then show value is now 3.
  3. We have still 4 elements in carousel.
  4. Resize window - we have 3 elements. We should see 3 elements without resizing.

System Info

System:
    OS: macOS 13.0
    CPU: (8) arm64 Apple M1 Pro
    Memory: 827.73 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.15.0 - ~/.nvm/versions/node/v18.15.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.5.0 - ~/.nvm/versions/node/v18.15.0/bin/npm
  Browsers:
    Chrome: 113.0.5672.126
    Safari: 16.1

Used Package Manager

yarn

Logs

No response

Validations

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

1 participant