HiDeoo / intro.js-react

Intro.js react wrapper
MIT License
407 stars 58 forks source link

exitOnOverlayClick not working #102

Closed debritde closed 1 year ago

debritde commented 1 year ago

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

debritde commented 1 year ago

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