(Go: >> BACK << -|- >> HOME <<)

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

[Bug]: Carousel - Cannot read properties of undefined (reading 'canScrollNext') #611

Closed
1 of 2 tasks
Artemiy111 opened this issue Jun 14, 2024 · 0 comments
Closed
1 of 2 tasks
Labels
bug Something isn't working

Comments

@Artemiy111
Copy link
Contributor
Artemiy111 commented Jun 14, 2024

Reproduction

Write <Carousel :opts="{ active: false }"></Carousel>

Describe the bug

api is undefined if active is set to false

Also may be empla-carousel-vue type definition issue, because it not specifies that CarouselApi can be undefined

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 AMD Ryzen 9 5900HS with Radeon Graphics
    Memory: 2.88 GB / 15.41 GB
  Binaries:
    Node: 21.5.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.2.0 - C:\Program Files\nodejs\pnpm.CMD
    bun: 1.1.3 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (125.0.2535.92)
    Internet Explorer: 11.0.22621.3527

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@Artemiy111 Artemiy111 added the bug Something isn't working label Jun 14, 2024
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