HiDeoo/intro.js-react

exitOnOverlayClick not working

debritde opened this issue · 1 comments

Describe the bug

Hi,
i implemented the option "exitOnOverlayClick" like this:
<Steps steps=steps enabled={(showIntro === 'true')} initialStep={0} onExit={console.log("EXIT")} tooltipClass="introTooltip" exitOnOverlayClick={false} onBeforeExit={false} />

But when i click anywhere outside the StepBox the Intro closes.

To Reproduce

Use the option
exitOnOverlayClick={false}
and see that it is not working

Expected behavior

It should work as described and the Intro should not be closed when clicking outside the Intro/Step Box

How often does this bug happen?

Every time

System Info

No response

Additional Context

No response

The implementation has to be done like that:

 <Steps
                steps=steps
                enabled={(showIntro === 'true')}
                initialStep={0}
                onExit={console.log("EXIT")}
                tooltipClass="introTooltip"
                options={{
                    "exitOnOverlayClick": false,
                }}
/>

See the options key