Skip to content

onExit is automatically firing  #100

@irtaza9

Description

@irtaza9

Describe the bug

I'm using intro.js wrapper for React js in functional components. I'm was debug the component and every time my component renders the onExit callback automatically fired by the library.

To Reproduce

This should be like onChange event or onComplete event, when someone interact with the exit/skip button the event should be call at that time.

Expected behavior

I think this should be resolved in next PR

How often does this bug happen?

Every time

System Info

OS: Windows (10)
Browser: Chrome
Version 108.0.5359.125 (Official Build) (64-bit)

Additional Context

I created a codesandbox with the behavior of library, you can check the code and add your valuable thoughts in it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions