Skip to content

Inactive arrow not disabled at init #919

@kapenzo

Description

@kapenzo

Checks

Version

v4.0.17 (from npm)

Description

One arrow should be disabled if the active slide is first or last.
Example: If your first slide has index 0, the left arrow should be disabled, because you cannot go to the slide with index -1.

The problem occurs only after initialization (mount). After changing the slide, arrows are properly disabled.

btw. Why there are different version numbers in npm and in github????

Reproduction Link

https://codesandbox.io/s/wizardly-sound-xipo77

Steps to Reproduce

Bug:
image
Should be:
image

Expected Behaviour

Arrow should be disabled after initialization (mount).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdoneFinished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions